mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Set default action to play (Fixes #1285)
This commit is contained in:
parent
adaefea42b
commit
096d27eb53
|
@ -163,7 +163,7 @@ class InstallOrPlayDialog(Gtk.Dialog):
|
|||
Gtk.Dialog.__init__(self, "%s is already installed" % game_name)
|
||||
self.connect("delete-event", lambda *x: self.destroy())
|
||||
|
||||
self.action = None
|
||||
self.action = "play"
|
||||
self.action_confirmed = False
|
||||
|
||||
self.set_size_request(320, 120)
|
||||
|
@ -187,9 +187,11 @@ class InstallOrPlayDialog(Gtk.Dialog):
|
|||
self.run()
|
||||
|
||||
def on_button_toggled(self, button, action):
|
||||
logger.debug("Action set to %s", action)
|
||||
self.action = action
|
||||
|
||||
def on_confirm(self, button):
|
||||
logger.debug("Action %s confirmed", self.action)
|
||||
self.action_confirmed = True
|
||||
self.destroy()
|
||||
|
||||
|
|
Loading…
Reference in a new issue