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
|
// set the active tab to the currently shown screen on the MainView
|
||||||
if ((unsigned)(g_model.view + 1) < getTabs())
|
auto view = ViewMain::instance()->getCurrentMainView();
|
||||||
setCurrentTab(g_model.view + 1);
|
if (view + 1 < getTabs())
|
||||||
|
setCurrentTab(view + 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user