Better image handling

This commit is contained in:
kramo
2023-03-14 18:42:05 +01:00
parent 094bfad10d
commit 24eac24c33
9 changed files with 48 additions and 48 deletions

View File

@@ -122,7 +122,7 @@ class CartridgesApplication(Adw.Application):
data["last_played"] = int(time.time())
save_games({game_id : data})
run_command(self.win, self.win.games_temp[self.win.active_game_id].executable)
run_command(self.win, self.win.games[self.win.active_game_id].executable)
self.win.update_games([game_id])
@@ -155,7 +155,7 @@ class CartridgesApplication(Adw.Application):
self.win.on_go_back_action(None, None)
# Create toast for undoing the remove action
toast = Adw.Toast.new(self.win.games_temp[game_id].name + " " + (_("removed")))
toast = Adw.Toast.new(self.win.games[game_id].name + " " + (_("removed")))
toast.set_button_label(_("Undo"))
toast.connect("button-clicked", self.win.on_undo_remove_action, game_id)
toast.set_priority(Adw.ToastPriority.HIGH)