Add option to remove all games

This commit is contained in:
kramo
2023-03-30 16:22:58 +02:00
parent bf2a500d5e
commit 61ef02cc7a
5 changed files with 65 additions and 5 deletions

View File

@@ -192,8 +192,8 @@ class CartridgesApplication(Adw.Application):
if self.win.stack.get_visible_child() == self.win.overview:
self.win.on_go_back_action(None, None)
# The variable is the title of the game
title = self.win.games[game_id].name
# The variable is the title of the game
toast = Adw.Toast.new(_(f"{title} removed"))
toast.set_button_label(_("Undo"))
toast.connect("button-clicked", self.win.on_undo_remove_action, game_id)