mirror of
https://github.com/lutris/lutris
synced 2024-09-05 23:46:21 +00:00
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:
parent
a764179db7
commit
9a01bd9d29
|
@ -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"""
|
||||
|
|
Loading…
Reference in a new issue