feat: Move menu bar creation to after widget initialization in GUI

This commit is contained in:
2026-01-05 09:25:20 +00:00
parent b1d993ab66
commit d38be52b46

View File

@@ -458,9 +458,6 @@ def gui(args: argparse.Namespace) -> None:
# Set dark theme similar to Steam
self.set_dark_theme()
# Create menu bar
self.create_menu_bar()
# Central widget with horizontal splitter
central_widget = QWidget()
self.setCentralWidget(central_widget)
@@ -645,6 +642,9 @@ def gui(args: argparse.Namespace) -> None:
main_layout.addWidget(right_panel, 1)
# Create menu bar after all widgets are initialized
self.create_menu_bar()
# Select first game by default
if self.games:
self.game_list.setCurrentRow(0)