fix: set screen setup tab corresponding to current main view

This commit is contained in:
Raphael Coeffic
2022-08-24 13:11:01 +10:00
committed by Peter Feerick
parent 6b7b22e660
commit 3eaeb911e8
+3 -2
View File
@@ -59,6 +59,7 @@ void ScreenMenu::updateTabs()
}
// set the active tab to the currently shown screen on the MainView
if ((unsigned)(g_model.view + 1) < getTabs())
setCurrentTab(g_model.view + 1);
auto view = ViewMain::instance()->getCurrentMainView();
if (view + 1 < getTabs())
setCurrentTab(view + 1);
}