mirror of
https://github.com/lutris/lutris
synced 2024-10-06 07:50:16 +00:00
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:
parent
05a301e769
commit
b18955e014
|
@ -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()):
|
||||
|
|
Loading…
Reference in a new issue