Replacing table.wipe with Details:Destroy()

This commit is contained in:
Tercio Jose
2023-05-22 15:31:29 -03:00
parent fa0d1e1d08
commit 0cdfa2b900
40 changed files with 1205 additions and 1322 deletions
+3 -3
View File
@@ -144,7 +144,7 @@ function Details:ResetProfile (profile_name)
end
--reset the profile
table.wipe(profile.instances)
Details:Destroy(profile.instances)
--export first instance
local instance = Details:GetInstance(1)
@@ -529,7 +529,7 @@ function Details:SaveProfile (saveas)
--save skins
if (not Details.do_not_save_skins) then
table.wipe(profile.instances)
Details:Destroy(profile.instances)
for index, instance in ipairs(Details.tabela_instancias) do
local exported = instance:ExportSkin()
exported.__was_opened = instance:IsEnabled()
@@ -1668,7 +1668,7 @@ function Details:SaveProfileSpecial()
end
--save skins
table.wipe(profile.instances)
Details:Destroy(profile.instances)
if (Details.tabela_instancias) then
for index, instance in ipairs(Details.tabela_instancias) do