Reset Auto Hide automation settings after importing a profile

This commit is contained in:
Tercio Jose
2022-09-01 11:17:32 -03:00
parent 27ca0d6df7
commit 22b83e722c
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -5170,7 +5170,7 @@ do
local sectionOptions = {
{type = "label", get = function() return "Switch by Role Out of Combat" end, text_template = subSectionTitleTextTemplate},
{type = "label", get = function() return "Switch by Role Out of Combat" end, text_template = subSectionTitleTextTemplate}, --localize-me
{--DAMAGER role out of combat
type = "select",
+7 -1
View File
@@ -1777,7 +1777,13 @@ function Details:ImportProfile (profileString, newProfileName)
profileObject.instances = DetailsFramework.table.copy ({}, profileData.instances)
Details:ApplyProfile (newProfileName)
--reset automation settings (due to user not knowing why some windows are disappearing)
for instanceId, instance in Details:ListInstances() do
DetailsFramework.table.copy(instance.hide_on_context, Details.instance_defaults.hide_on_context)
end
Details:Msg ("profile successfully imported.")--localize-me
return true
else