Small fix

This commit is contained in:
fed 2022-03-04 10:38:06 +01:00
parent ad6bb9b1ba
commit c07d8a5757

View File

@ -88,12 +88,7 @@ function startupdatedownload(popup, autoclose)
updater.relaunch() updater.relaunch()
end end
}) })
end else
if (autoclose) then
LUI.FlowManager.RequestLeaveMenu(popup)
end
if (LUI.mp_menus) then if (LUI.mp_menus) then
Engine.Exec("lui_restart; lui_open mp_main_menu") Engine.Exec("lui_restart; lui_open mp_main_menu")
else else
@ -101,6 +96,11 @@ function startupdatedownload(popup, autoclose)
end end
end end
if (autoclose) then
LUI.FlowManager.RequestLeaveMenu(popup)
end
end
createtask({ createtask({
done = updater.isupdatedownloaddone, done = updater.isupdatedownloaddone,
cancelled = isupdatecancelled, cancelled = isupdatecancelled,