def edit_game_configuration(self, _button): """Edit game preferences.""" game = Game(self.view.selected_game) game_slug = game.slug if game.is_installed: dialog = EditGameConfigDialog(self, game) if dialog.slug: game = Game(dialog.slug) self.view.remove_game(game_slug) self.view.add_game(game) self.view.set_selected_game(game)
def on_edit_game_configuration(self, widget): """Edit game preferences.""" 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_treeview.update() if game.is_installed: dialog = EditGameConfigDialog(self, game, on_dialog_saved)
def on_edit_game_configuration(self, _widget): """Edit game preferences""" if self.config_menu_first_access: self.config_menu_first_access = False 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_treeview.update() if game.is_installed: dialog = EditGameConfigDialog(self, game, on_dialog_saved)
def edit_game_configuration(self, _button): """Edit game preferences.""" game = Game(self.view.selected_game) if game.is_installed: EditGameConfigDialog(self, game)