This commit is contained in:
fed 2022-01-31 09:33:07 +01:00
parent d131749a3c
commit afd9df7269

View File

@ -77,6 +77,10 @@ LUI.openpopupmenu = function(menu, args)
end end
LUI.onmenuopen("main_lockout", function() LUI.onmenuopen("main_lockout", function()
if (game:isdebugbuild()) then
return
end
if (game:sharedget("has_tried_updating") == "") then if (game:sharedget("has_tried_updating") == "") then
game:ontimeout(function() game:ontimeout(function()
game:sharedset("has_tried_updating", "1") game:sharedset("has_tried_updating", "1")
@ -327,7 +331,7 @@ function tryupdate(autoclose)
if (updatebinary) then if (updatebinary) then
LUI.confirmationpopup({ LUI.confirmationpopup({
title = "RESTART REQUIRED", title = "RESTART REQUIRED",
text = "Update requires restart, relaunch now?", text = "Update requires restart",
buttontext = "RESTART", buttontext = "RESTART",
callback = function() callback = function()
game:relaunch() game:relaunch()