Fixed install.lua issue

This commit is contained in:
Robert Jelic
2025-11-01 02:54:57 +01:00
parent 5161b51323
commit 278ad08c04
2 changed files with 2 additions and 1 deletions

View File

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

View File

@@ -209,6 +209,7 @@ end
--- @protected
function DropDown:focus()
VisualElement.focus(self)
self:prioritize()
self:setState("opened")
end