Add option to remove all games
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user