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.
This commit is contained in:
Daniel Johnson 2023-12-22 04:49:23 -05:00
parent a764179db7
commit 9a01bd9d29

View file

@ -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"""