fix: suppress duplicate native quest POIs
This commit is contained in:
@@ -266,7 +266,6 @@ function QuestieOptions.tabs.icons:Initialize()
|
||||
get = function() return Questie.db.profile.enableObjectives; end,
|
||||
set = function(info, value)
|
||||
Questie.db.profile.enableObjectives = value
|
||||
QuestieCompat.SyncBlizzardObjectivePOIs(value)
|
||||
QuestieQuest:ToggleNotes(value)
|
||||
QuestieOptionsUtils.DetermineTheme()
|
||||
end,
|
||||
@@ -1335,7 +1334,6 @@ end
|
||||
function QuestieOptionsUtils.ExecuteTheme(info, value)
|
||||
Questie.db.profile.iconTheme = value
|
||||
if value == 'questie' then
|
||||
QuestieCompat.SyncBlizzardObjectivePOIs(true)
|
||||
Questie.db.profile.enableObjectives = true
|
||||
Questie.db.profile.ICON_SLAY = Questie.icons["slay"]
|
||||
Questie.db.profile.ICON_LOOT = Questie.icons["loot"]
|
||||
@@ -1348,7 +1346,6 @@ function QuestieOptionsUtils.ExecuteTheme(info, value)
|
||||
Questie.db.profile.alwaysGlowMinimap = optionsDefaults.profile.alwaysGlowMinimap
|
||||
Questie.db.profile.clusterLevelHotzone = optionsDefaults.profile.clusterLevelHotzone
|
||||
elseif value == 'pfquest' then
|
||||
QuestieCompat.SyncBlizzardObjectivePOIs(true)
|
||||
Questie.db.profile.enableObjectives = true
|
||||
Questie.db.profile.ICON_SLAY = Questie.icons["node"]
|
||||
Questie.db.profile.ICON_LOOT = Questie.icons["node"]
|
||||
@@ -1361,7 +1358,7 @@ function QuestieOptionsUtils.ExecuteTheme(info, value)
|
||||
Questie.db.profile.alwaysGlowMinimap = false
|
||||
Questie.db.profile.clusterLevelHotzone = 1
|
||||
elseif value == 'blizzard' then
|
||||
QuestieCompat.SyncBlizzardObjectivePOIs(false)
|
||||
QuestieCompat.EnableBlizzardObjectivePOIs()
|
||||
Questie.db.profile.enableObjectives = false
|
||||
Questie.db.profile.ICON_SLAY = Questie.icons["slay"]
|
||||
Questie.db.profile.ICON_LOOT = Questie.icons["loot"]
|
||||
|
||||
@@ -226,7 +226,7 @@ QuestieInit.Stages[1] = function() -- run as a coroutine
|
||||
end
|
||||
|
||||
Questie:SetIcons()
|
||||
QuestieCompat.SyncBlizzardObjectivePOIs(Questie.db.profile.enableObjectives)
|
||||
QuestieCompat.InitializeBlizzardPOISuppression()
|
||||
|
||||
if QUESTIE_LOCALES_OVERRIDE ~= nil then
|
||||
l10n:InitializeLocaleOverride()
|
||||
|
||||
@@ -302,7 +302,6 @@ function QuestieMenu:Show(hideDelay)
|
||||
tinsert(menuTable, { text= l10n("Objective"), func = function()
|
||||
local value = not Questie.db.profile.enableObjectives
|
||||
Questie.db.profile.enableObjectives = value
|
||||
QuestieCompat.SyncBlizzardObjectivePOIs(value)
|
||||
QuestieQuest:ToggleNotes(value)
|
||||
QuestieQuest:SmoothReset()
|
||||
end, icon=QuestieLib.AddonPath.."Icons\\event.blp", notCheckable=false, checked=Questie.db.profile.enableObjectives, isNotRadio=true, keepShownOnClick=true})
|
||||
|
||||
Reference in New Issue
Block a user