From f2c8774edf3e3ac58801c6027f36b992cd0e19aa Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 3 Nov 2022 11:38:36 -0300 Subject: Checking for updates in main menu crashes the launcher. So hide the button. --- game/client.rpy | 2 ++ game/screens.rpy | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/game/client.rpy b/game/client.rpy index f9be113..7aebf70 100644 --- a/game/client.rpy +++ b/game/client.rpy @@ -225,10 +225,12 @@ init 2 python: shutil.rmtree(get_path("manaplus")) if not silent: renpy.notify("Files are outdated!") + stdout("Client is outdated.") return False else: if not silent: renpy.notify("All files up to date!") + stdout("All files are up to date.") return True except: traceback.print_exc() diff --git a/game/screens.rpy b/game/screens.rpy index a931fb9..4c9c4b9 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -720,7 +720,8 @@ screen preferences(): showif not persistent.steam: textbutton _("Auto-Login %s" % ifte(persistent.autologin is not None, _("ON"), _("OFF"))): action ToggleVariable("persistent.autologin") - textbutton _("Check Updates"): + showif not main_menu: + textbutton _("Check Updates"): action ifte(persistent.evol2cli is not None and persistent.host is not None and handle_client(launch=True, download=False), -- cgit v1.2.3-70-g09d2