Skip to content

Commit

Permalink
Bug Handler updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Wutname1 committed Nov 12, 2024
1 parent 2439a60 commit c8080eb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions Core/Framework.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1110,10 +1110,12 @@ function SUI:OnInitialize()
_G.SUIErrorDisplay:OpenErrorWindow()
end
end

SUI:AddChatCommand('errors', ErrHandler, 'Display SUI Error handler', {
local desc = 'Display SUI Error handler'
local args = {
reset = 'Clear all saved errors',
})
}
SUI:AddChatCommand('error', ErrHandler, desc, args)
SUI:AddChatCommand('errors', ErrHandler, desc, args)
end
end

Expand Down
2 changes: 1 addition & 1 deletion Core/Handlers/Bugs/BugWindow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function addon.BugWindow:IsShown()
return window and window:IsShown()
end

addon.BugWindow.ResetUI = function()
addon.BugWindow.Reset = function()
-- Reset the UI
currentErrorList = {}
currentErrorIndex = nil
Expand Down
2 changes: 1 addition & 1 deletion Core/Handlers/Bugs/ErrorHandler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function addon.ErrorHandler:Reset()
wipe(errorDB)
wipe(sessionList)
self:Initialize()
print(L['All stored errors have been wiped.'])
print(L['|cffffffffSpartan|cffe21f1fUI|r: All stored errors have been wiped.'])
end

return addon.ErrorHandler
3 changes: 2 additions & 1 deletion Core/Handlers/Bugs/Main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ end

addon.Reset = function()
BugGrabber:Reset()
addon.BugWindow:ResetUI()
addon.ErrorHandler:Reset()
addon.BugWindow:Reset()
addon:updatemapIcon()
end

Expand Down

0 comments on commit c8080eb

Please sign in to comment.