From d6cb1bfdf9dd9a6534779c3d41e9d5aa5c519e0f Mon Sep 17 00:00:00 2001 From: evil_morfar <10189576+evil-morfar@users.noreply.github.com> Date: Wed, 14 Aug 2024 16:34:58 +0200 Subject: [PATCH] Made default export selection a db option --- Core/Defaults.lua | 1 + Modules/History/lootHistory.lua | 2 +- RCLootCouncil.toc | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Core/Defaults.lua b/Core/Defaults.lua index a085846c..d921fe36 100644 --- a/Core/Defaults.lua +++ b/Core/Defaults.lua @@ -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 diff --git a/Modules/History/lootHistory.lua b/Modules/History/lootHistory.lua index 398b8c06..d348d58c 100644 --- a/Modules/History/lootHistory.lua +++ b/Modules/History/lootHistory.lua @@ -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."]}, diff --git a/RCLootCouncil.toc b/RCLootCouncil.toc index d9b44a02..12a72586 100644 --- a/RCLootCouncil.toc +++ b/RCLootCouncil.toc @@ -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