fix broken dependencies management
This commit is contained in:
@@ -33,4 +33,5 @@
|
||||
onup="on_history_up()"
|
||||
ondown="on_history_down()">
|
||||
</textbox>
|
||||
<textbox size="200" margin="20" multiline="true" text-wrap="true" autoresize="false"/>
|
||||
</container>
|
||||
|
||||
@@ -347,12 +347,6 @@ function refresh()
|
||||
packs_info[id] = {packinfo.id, packinfo.title}
|
||||
end
|
||||
|
||||
for i,id in ipairs(packs_installed) do
|
||||
if table.has(required, id) then
|
||||
document["pack_"..id].enabled = false
|
||||
end
|
||||
end
|
||||
|
||||
if #packs_excluded == 0 then packs_excluded = table.copy(packs_available) end
|
||||
if #packs_included == 0 then packs_included = table.copy(packs_installed) end
|
||||
|
||||
@@ -372,6 +366,12 @@ function refresh()
|
||||
place_pack(packs_add, packinfo, callback, string.format('reposition_func("%s")', packinfo.id))
|
||||
end
|
||||
|
||||
for i,id in ipairs(packs_installed) do
|
||||
if table.has(required, id) then
|
||||
document["pack_"..id].enabled = false
|
||||
end
|
||||
end
|
||||
|
||||
check_deleted()
|
||||
apply_movements(packs_cur, packs_add)
|
||||
refresh_changes()
|
||||
|
||||
Reference in New Issue
Block a user