From 5ae5e711f2e67e84133b55f20cafde504b7e6d0d Mon Sep 17 00:00:00 2001 From: fed <58637860+fedddddd@users.noreply.github.com> Date: Fri, 4 Mar 2022 10:38:06 +0100 Subject: [PATCH] Small fix --- src/client/resources/ui_scripts/updater.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client/resources/ui_scripts/updater.lua b/src/client/resources/ui_scripts/updater.lua index b8ee7808..01d77360 100644 --- a/src/client/resources/ui_scripts/updater.lua +++ b/src/client/resources/ui_scripts/updater.lua @@ -88,17 +88,17 @@ function startupdatedownload(popup, autoclose) updater.relaunch() end }) + else + if (LUI.mp_menus) then + Engine.Exec("lui_restart; lui_open mp_main_menu") + else + Engine.Exec("lui_restart") + 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({