Skip to content

Commit

Permalink
config: add option to reset addon cache
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed Sep 5, 2021
1 parent cb07c92 commit f59eb2c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions config.lua
Expand Up @@ -208,6 +208,19 @@ pfQuest_defconfig = {
ReloadUI()
end

StaticPopup_Show("PFQUEST_RESET")
end
},
["btn_cache"] = {
text = pfQuest_Loc["Reset Cache"],
default = "1", type = "button", pos = { 2, 23 }, func = function()
local dialog = StaticPopupDialogs["PFQUEST_RESET"]
dialog.text = pfQuest_Loc["Do you really want to reset the caches?"]
dialog.OnAccept = function()
pfQuest_questcache = nil
ReloadUI()
end

StaticPopup_Show("PFQUEST_RESET")
end
},
Expand Down

0 comments on commit f59eb2c

Please sign in to comment.