Skip to content

Commit

Permalink
Made default export selection a db option
Browse files Browse the repository at this point in the history
  • Loading branch information
evil-morfar committed Aug 14, 2024
1 parent 691e96e commit d6cb1bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Core/Defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ addon.defaults = {
-- Other
iLvlDecimal = false,
showAutoGroupLootWarning = true, -- Show warning OnMLDBReceived if autoGroupLoot is on.
defaultHistoryExport = "player",

UI = { -- stores all ui information
["**"] = { -- Defaults
Expand Down
2 changes: 1 addition & 1 deletion Modules/History/lootHistory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ LootHistory.wowheadBaseUrl = "https://www.wowhead.com/item="
local tinsert, tostring, getglobal, pairs, ipairs, tremove, strsplit = tinsert, tostring, getglobal, pairs, ipairs, tremove, strsplit

function LootHistory:OnInitialize()
self.exportSelection = "player"
self.exportSelection = addon.db.profile.defaultHistoryExport or "player"
-- Pointer to export functions. Expected to return a string containing the export
self.exports = {
csv = {func = self.ExportCSV, name = "CSV", tip = L["Standard .csv output."]},
Expand Down
4 changes: 2 additions & 2 deletions RCLootCouncil.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Author: Potdisc
## Interface: 110002
## Notes: Interface for running a Loot Council v3.13.0
## Notes: Interface for running a Loot Council v3.13.1
## Title: RCLootCouncil
## Version: 3.13.0
## Version: 3.13.1
## SavedVariables: RCLootCouncilDB, RCLootCouncilLootDB
## OptionalDeps: LibStub, CallbackHandler-1.0, Ace3, lib-st, LibWindow-1.1, LibDialog-1.0
## X-Curse-Project-ID: 39928
Expand Down

0 comments on commit d6cb1bf

Please sign in to comment.