Don't present 'click install to continue' when not needed

This commit is contained in:
Mathieu Comandon 2020-08-02 21:54:46 -07:00
parent 6078c7a9f7
commit 3548fb17c9
2 changed files with 7 additions and 7 deletions

View file

@ -236,12 +236,12 @@ class InstallerWindow(BaseApplicationWindow): # pylint: disable=too-many-public
def select_install_folder(self):
"""Stage where we select the install directory."""
if self.interpreter.installer.creates_game_folder:
self.set_message(_("Select installation directory"))
default_path = self.interpreter.get_default_target()
self.set_install_destination(default_path)
else:
self.set_message(_("Click install to continue"))
if not self.interpreter.installer.creates_game_folder:
self.on_install_clicked(self.install_button)
return
self.set_message(_("Select installation directory"))
default_path = self.interpreter.get_default_target()
self.set_install_destination(default_path)
if self.continue_handler:
self.continue_button.disconnect(self.continue_handler)
self.continue_button.hide()

View file

@ -4,10 +4,10 @@ from gettext import gettext as _
from gi.repository import GObject, Gtk, Pango
from lutris.cache import save_to_cache
from lutris.gui.widgets.common import FileChooserEntry
from lutris.gui.widgets.download_progress import DownloadProgressBox
from lutris.installer.steam_installer import SteamInstaller
from lutris.cache import save_to_cache
from lutris.util import system
from lutris.util.log import logger
from lutris.util.strings import add_url_tags, gtk_safe