Small fix

This commit is contained in:
fed 2022-03-04 09:26:58 +01:00
parent b0a572186c
commit 82896a0a3d

View File

@ -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({