Fix DetailsWindow bugs

This commit is contained in:
kramo
2023-04-20 02:05:20 +02:00
parent 1e3df843ba
commit d505705493
2 changed files with 7 additions and 3 deletions

View File

@@ -67,7 +67,8 @@ class DetailsWindow(Adw.Window):
if self.game:
self.set_title(_("Edit Game Details"))
self.name.set_text(self.game.name)
self.developer.set_text(self.game.developer)
if self.game.developer:
self.developer.set_text(self.game.developer)
self.executable.set_text(shlex.join(self.game.executable))
self.apply_button.set_label(_("Apply"))
@@ -218,7 +219,7 @@ class DetailsWindow(Adw.Window):
self.close()
self.win.show_details_view(self.game)
def focus_executable(self):
def focus_executable(self, *_args):
self.set_focus(self.executable)
def set_cover(self, _source, result, *_args):