Skip to content

Commit

Permalink
[UI] Simplify adding tabs to XNav
Browse files Browse the repository at this point in the history
  • Loading branch information
Gliniak authored and Razzile committed Aug 12, 2023
1 parent b46745a commit ae41a03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xenia/ui/qt/widgets/nav.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ void XNav::BuildTabs() {
// TODO(Wildenhaus): Define tabs in shell?
// (Razzile): Probably better to move to main window
// and keep widgets/ for reusable components
std::vector<XTab*> tabs;
std::vector<XTab*> tabs = {new HomeTab(), new LibraryTab(),
new SettingsTab()};

if (cvars::show_debug_tab) {
tabs = {new HomeTab(), new LibraryTab(), new SettingsTab(), new DebugTab()};
} else {
tabs = {new HomeTab(), new LibraryTab(), new SettingsTab()};
tabs.push_back(new DebugTab());
}

tab_selector_ = new XTabSelector(tabs);
Expand Down

0 comments on commit ae41a03

Please sign in to comment.