fix: set screen setup tab corresponding to current main view
This commit is contained in:
committed by
Peter Feerick
parent
6b7b22e660
commit
3eaeb911e8
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user