mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-23 17:09:22 +01:00
Store last tab selected.
This commit is contained in:
parent
f01b2f8754
commit
654978dd64
3 changed files with 30 additions and 4 deletions
|
|
@ -43,13 +43,14 @@ public sealed class ConfigWindow : Window
|
|||
|
||||
RespectCloseHotkey = true;
|
||||
tutorial.UpdateTutorialStep();
|
||||
IsOpen = _config.DebugMode;
|
||||
IsOpen = _config.DebugMode;
|
||||
}
|
||||
|
||||
public void Setup(Penumbra penumbra, ConfigTabBar configTabs)
|
||||
{
|
||||
_penumbra = penumbra;
|
||||
_configTabs = configTabs;
|
||||
SelectTab(_config.SelectedTab);
|
||||
}
|
||||
|
||||
public override bool DrawConditions()
|
||||
|
|
@ -108,7 +109,12 @@ public sealed class ConfigWindow : Window
|
|||
}
|
||||
else
|
||||
{
|
||||
_configTabs.Draw();
|
||||
var type = _configTabs.Draw();
|
||||
if (type != _config.SelectedTab)
|
||||
{
|
||||
_config.SelectedTab = type;
|
||||
_config.Save();
|
||||
}
|
||||
}
|
||||
|
||||
_lastException = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue