def on_edit_game_configuration(self, _widget): """Edit game preferences""" def on_dialog_saved(): game_id = dialog.game.id self.window.view.remove_game(game_id) self.window.view.add_game_by_id(game_id) self.window.view.set_selected_game(game_id) self.window.sidebar_listbox.update() dialog = EditGameConfigDialog(self.window, self.game, on_dialog_saved)
def on_edit_game_configuration(self, _widget): """Edit game preferences""" init_dxvk_versions() game = Game(self.view.selected_game) def on_dialog_saved(): game_id = dialog.game.id self.view.remove_game(game_id) self.view.add_game_by_id(game_id) self.view.set_selected_game(game_id) self.sidebar_listbox.update() if game.is_installed: dialog = EditGameConfigDialog(self, game, on_dialog_saved)
def on_edit_game_configuration(self, _widget): """Edit game preferences""" EditGameConfigDialog(self.window, self.game)