mirror of
https://github.com/lutris/lutris
synced 2024-09-18 15:22:27 +00:00
Driectly return when no game log is available
This commit is contained in:
parent
d30a80a9e5
commit
19f1269125
|
@ -444,6 +444,7 @@ class LutrisWindow(object):
|
|||
def on_view_game_log_activate(self, widget):
|
||||
if not self.running_game:
|
||||
dialogs.ErrorDialog('No game log available')
|
||||
return
|
||||
log_title = "Log for {}".format(self.running_game)
|
||||
log_window = LogWindow(log_title, self.window)
|
||||
log_window.logtextview.set_text(self.running_game.game_log)
|
||||
|
|
Loading…
Reference in a new issue