Merge branch 'MihailRis:main' into main

This commit is contained in:
Xertis 2025-01-09 14:37:15 +03:00 • committed by GitHub
commit 274d6b4552
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
250 changed files with 7152 additions and 2904 deletions

View file

@ -185,8 +185,14 @@ function refresh()
end
end
local packids = {unpack(packs_installed)}
for i,k in ipairs(packs_available) do
table.insert(packids, k)
end
local packinfos = pack.get_info(packids)
for i,id in ipairs(packs_installed) do
local packinfo = pack.get_info(id)
local packinfo = packinfos[id]
packinfo.index = i
callback = not table.has(base_packs, id) and string.format('move_pack("%s")', id) or nil
packinfo.error = check_dependencies(packinfo)
@ -194,7 +200,7 @@ function refresh()
end
for i,id in ipairs(packs_available) do
local packinfo = pack.get_info(id)
local packinfo = packinfos[id]
packinfo.index = i
callback = string.format('move_pack("%s")', id)
packinfo.error = check_dependencies(packinfo)