From 7fb05322ad1d1506375289beea7b12bbadaea029 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Fri, 27 Jun 2025 10:28:21 +0500 Subject: [PATCH] fix: returned game list update on game delete Signed-off-by: Boris Yumankulov --- portprotonqt/context_menu_manager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/portprotonqt/context_menu_manager.py b/portprotonqt/context_menu_manager.py index df21416..4120559 100644 --- a/portprotonqt/context_menu_manager.py +++ b/portprotonqt/context_menu_manager.py @@ -601,7 +601,6 @@ Icon={icon_path} return False def delete_game(self, game_name, exec_line): - """Delete the .desktop file and associated custom data for the game.""" reply = QMessageBox.question( self.parent, _("Confirm Deletion"), @@ -647,6 +646,10 @@ Icon={icon_path} _("Failed to delete custom data: {error}").format(error=str(e)) ) + # Перезагрузка списка игр и обновление сетки + self.load_games() + self.update_game_grid() + def add_to_menu(self, game_name, exec_line): """Copy the .desktop file to ~/.local/share/applications.""" if not self._check_portproton():