mirror of
https://github.com/lutris/lutris
synced 2024-09-29 20:43:37 +00:00
Don't present 'click install to continue' when not needed
This commit is contained in:
parent
6078c7a9f7
commit
3548fb17c9
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue