Fix launching games from tray icon

The tray icon class calls Application.get_launch_ui_delegate, which is not defined in Application.
I wasn't sure if it was better to make the icon class use directly Application.launch_ui_delegate or add the getter method. I opted for the getter method so that the field can be treated as an implementation detail.
This commit is contained in:
daniele-bondi 2023-11-09 22:09:43 +01:00 committed by GitHub
parent 05a301e769
commit b18955e014
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -805,6 +805,9 @@ class Application(Gtk.Application):
ErrorDialog(_("No DLC found"), parent=self.window)
return True
def get_launch_ui_delegate(self):
return self.launch_ui_delegate
def get_running_game_ids(self):
ids = []
for i in range(self.running_games.get_n_items()):