Skip to content

Commit 275c4cd

Browse files
committed
[UI] Simplify adding tabs to XNav
1 parent 9d0bf91 commit 275c4cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/xenia/ui/qt/widgets/nav.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ void XNav::BuildTabs() {
4444
// TODO(Wildenhaus): Define tabs in shell?
4545
// (Razzile): Probably better to move to main window
4646
// and keep widgets/ for reusable components
47-
std::vector<XTab*> tabs;
47+
std::vector<XTab*> tabs = {new HomeTab(), new LibraryTab(),
48+
new SettingsTab()};
49+
4850
if (cvars::show_debug_tab) {
49-
tabs = {new HomeTab(), new LibraryTab(), new SettingsTab(), new DebugTab()};
50-
} else {
51-
tabs = {new HomeTab(), new LibraryTab(), new SettingsTab()};
51+
tabs.push_back(new DebugTab());
5252
}
5353

5454
tab_selector_ = new XTabSelector(tabs);

0 commit comments

Comments
 (0)