summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-11-03 11:38:36 -0300
committerJesusaves <cpntb1@ymail.com>2022-11-03 11:38:36 -0300
commitf2c8774edf3e3ac58801c6027f36b992cd0e19aa (patch)
treea1c8601c71a8e853f9266ea684e16b9088b2acdf
parent28017a181b201375e0e53e9453c4eb1a90c48ddc (diff)
downloadrenpy-f2c8774edf3e3ac58801c6027f36b992cd0e19aa.tar.gz
renpy-f2c8774edf3e3ac58801c6027f36b992cd0e19aa.tar.bz2
renpy-f2c8774edf3e3ac58801c6027f36b992cd0e19aa.tar.xz
renpy-f2c8774edf3e3ac58801c6027f36b992cd0e19aa.zip
Checking for updates in main menu crashes the launcher. So hide the button.
-rw-r--r--game/client.rpy2
-rw-r--r--game/screens.rpy3
2 files changed, 4 insertions, 1 deletions
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),