From 9a01bd9d294a51058569c7663765b67f857ca321 Mon Sep 17 00:00:00 2001 From: Daniel Johnson Date: Fri, 22 Dec 2023 04:49:23 -0500 Subject: [PATCH] Explicitly destroy the UninstallGameDialog I can't seem to make the GtkTemplate stuff work with any base class, so we can't inherit from ModalDialog. --- lutris/game_actions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lutris/game_actions.py b/lutris/game_actions.py index afb843434..887367782 100644 --- a/lutris/game_actions.py +++ b/lutris/game_actions.py @@ -95,7 +95,9 @@ class BaseGameActions: def on_remove_game(self, *_args): """Callback that present the uninstall dialog to the user""" game_ids = [g.id for g in self.games if g.is_installed or g.is_db_stored] - UninstallMultipleGamesDialog(game_ids, parent=self.window).run() + dlg = UninstallMultipleGamesDialog(game_ids, parent=self.window) + dlg.run() + dlg.destroy() def on_view_game(self, _widget): """Callback to open a game on lutris.net"""