From 278ad08c045f1cea23007e0771059e27d49a7e0d Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Sat, 1 Nov 2025 02:54:57 +0100 Subject: [PATCH] Fixed install.lua issue --- install.lua | 2 +- src/elements/DropDown.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/install.lua b/install.lua index 14fb66b..2a8b83b 100644 --- a/install.lua +++ b/install.lua @@ -572,7 +572,7 @@ local function installCustom(installPath, log, progressBar, selectedElements, se 'local project = {}\n', 'local loadedProject = {}\n', 'local baseRequire = require\n', - 'require = function(path) if(project[path..".lua"])then if(loadedProject[path]==nil)then loadedProject[path] = project[path..".lua"]() end return loadedProject[path] end baseRequire(path) end\n' + 'require = function(path) if(project[path..".lua"])then if(loadedProject[path]==nil)then loadedProject[path] = project[path..".lua"]() end return loadedProject[path] end return baseRequire(path) end\n' } for filePath, content in pairs(project) do diff --git a/src/elements/DropDown.lua b/src/elements/DropDown.lua index 146ee12..c75e45a 100644 --- a/src/elements/DropDown.lua +++ b/src/elements/DropDown.lua @@ -209,6 +209,7 @@ end --- @protected function DropDown:focus() VisualElement.focus(self) + self:prioritize() self:setState("opened") end