Reset Auto Hide automation settings after importing a profile
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user