Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ local function InitializeSettings()
)
Settings.CreateCheckbox(category, autoPopupSetting, L.autoDesc)

-- Default to current session setting
local defaultCurrentSessionSetting = Settings.RegisterAddOnSetting(
category,
"BUGSACK_DEFAULT_CURRENT_SESSION",
"defaultCurrentSession",
addon.db,
Settings.VarType.Boolean,
L["Default to current session"],
Settings.Default.False
)
Settings.CreateCheckbox(category, defaultCurrentSessionSetting, L.defaultCurrentSessionDesc)

-- Chatframe output setting
local chatFrameSetting = Settings.RegisterAddOnSetting(
category,
Expand Down
3 changes: 3 additions & 0 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ do
if type(sv.useMaster) ~= "boolean" then
sv.useMaster = false
end
if type(sv.defaultCurrentSession) ~= "boolean" then
sv.defaultCurrentSession = false
end
addon.db = sv

-- Make sure we grab any errors fired before bugsack loaded.
Expand Down
2 changes: 2 additions & 0 deletions locales.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ L.useMaster = "Use 'Master' sound channel"
L.useMasterDesc = "Play the chosen error sound over the 'Master' sound channel instead of the default one."
L.addonCompartment = "Addon compartment icon"
L.addonCompartment_desc = "Creates a menu entry in the 'Addon Compartment' for BugSack."
L["Default to current session"] = "Default to current session"
L.defaultCurrentSessionDesc = "When opening BugSack, show bugs from the current session instead of all sessions."

local locale = GetLocale()
if locale == "deDE" then
Expand Down
13 changes: 8 additions & 5 deletions sack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,13 @@ function addon:OpenSack()
return
end

-- XXX we should show the most recent error (from this session) that has not previously been shown in the sack
-- XXX so, 5 errors are caught, the user clicks the icon, we start it at the first of those 5 errors.
--[[if not currentSackContents then
currentSackContents = BugGrabber:GetDB(currentSackSession)
end]]
-- Reset to configured default tab on each open
if addon.db.defaultCurrentSession then
state = "BugSackTabSession"
else
state = "BugSackTabAll"
end
lastState = nil

show()
end