Reopen last opened tab in current session

Will reset to General tab on startup / scene collection change
This commit is contained in:
WarmUpTill
2022-02-04 22:13:36 +01:00
committed by WarmUpTill
parent 0effbd8ace
commit 1328896801
4 changed files with 14 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ AdvSceneSwitcher::~AdvSceneSwitcher()
{
if (switcher) {
switcher->settingsWindowOpened = false;
switcher->lastOpenedTab = ui->tabWidget->currentIndex();
}
}
@@ -86,6 +87,7 @@ void AdvSceneSwitcher::loadUI()
setupMacroTab();
setTabOrder();
setCurrentTab();
restoreWindowGeo();
checkFirstTimeSetup();