Better image handling
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user