Skip to content

Commit

Permalink
Use wrappers from Dashi
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed May 2, 2023
1 parent 9e278a8 commit 099e461
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions config/Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ local function CreateOptions()
LibStub('AceConfigDialog-3.0'):AddToBlizOptions(addonName)
end

SettingsPanel:HookScript('OnShow', function()
addon:HookSettings(function()
CreateOptions() -- LoD
addon.CreateBlocklistOptions() -- LoD
end)
Expand All @@ -101,5 +101,5 @@ addon:RegisterSlash('/quickquest', '/qq', function()
CreateOptions() -- LoD
addon.CreateBlocklistOptions() -- LoD

Settings.OpenToCategory(addonName)
addon:OpenSettings(addonName)
end)
12 changes: 4 additions & 8 deletions config/SavedVariables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,7 @@ local defaults = {
},
}

function addon:ADDON_LOADED(name)
if name == addonName then
-- initialize database with defaults
addon.db = LibStub('AceDB-3.0'):New('QuickQuestDB2', defaults, true)

return true -- unregister self
end
end
addon:HookAddOn(addonName, function()
-- initialize database with defaults
addon.db = LibStub('AceDB-3.0'):New('QuickQuestDB2', defaults, true)
end)

0 comments on commit 099e461

Please sign in to comment.