diff --git a/src/client/resources/ui_scripts/updater.lua b/src/client/resources/ui_scripts/updater.lua index 21d289d4..b8ee7808 100644 --- a/src/client/resources/ui_scripts/updater.lua +++ b/src/client/resources/ui_scripts/updater.lua @@ -1,6 +1,8 @@ updatecancelled = false taskinterval = 100 +updater.cancelupdate() + function startupdatecheck(popup, autoclose) updatecancelled = false @@ -85,12 +87,18 @@ function startupdatedownload(popup, autoclose) callback = function() updater.relaunch() end - })-- + }) end - + if (autoclose) then LUI.FlowManager.RequestLeaveMenu(popup) end + + if (LUI.mp_menus) then + Engine.Exec("lui_restart; lui_open mp_main_menu") + else + Engine.Exec("lui_restart") + end end createtask({