Skip to content

Commit

Permalink
Don't present 'click install to continue' when not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
strycore committed Aug 3, 2020
1 parent 6078c7a commit 3548fb1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lutris/gui/installerwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,12 @@ def on_installer_selected(self, _widget, installer_slug):

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()
Expand Down
2 changes: 1 addition & 1 deletion lutris/gui/widgets/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

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
Expand Down

0 comments on commit 3548fb1

Please sign in to comment.