mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 21:55:09 +00:00
feat: Move menu bar creation to after widget initialization in GUI
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user