Skip to content

Commit

Permalink
Fixing Ticket #910 (Profile spec switch did not work with blizzard au…
Browse files Browse the repository at this point in the history
…tomatic spec change in LFG).
  • Loading branch information
michaelnpsp committed Dec 11, 2020
1 parent d5be78f commit 3616e1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion GridRoster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,11 @@ do
end
end
-- needed to trigger an update when switching from one BG directly to another
function Grid2:PLAYER_ENTERING_WORLD()
function Grid2:PLAYER_ENTERING_WORLD(_, isLogin, isReloadUI)
groupType, updateCount = nil, 0
if not (isLogin or isReloadUI) then
self:ReloadProfile() -- to detect blizzard silent spec change when entering in a LFG instance
end
self:GroupChanged('PLAYER_ENTERING_WORLD')
end
-- partyTypes = solo party arena raid / instTypes = none pvp lfr flex mythic other
Expand Down
6 changes: 3 additions & 3 deletions Options/GridIndicators.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Grid2Options.indicatorTypesOrder= { tooltip = 1, alpha = 2, background = 3, bord

Grid2Options.indicatorTitleIconsOptions = {
size = 24, offsetx = -4, offsety = -2, anchor = 'TOPRIGHT',
{ image = "Interface\\AddOns\\Grid2Options\\media\\delete", tooltip = L["Delete this indicator"], func = function(info) Grid2Options:DeleteIndicator( info.option.arg.indicator ) end },
{ image = "Interface\\AddOns\\Grid2Options\\media\\delete", tooltip = L["Delete this indicator"], func = function(info) Grid2Options:DeleteIndicatorConfirm( info.option.arg.indicator ) end },
}

do
Expand Down Expand Up @@ -73,7 +73,7 @@ do
end

-- Published because is used outside indicators management panel too
function Grid2Options:DeleteIndicator(indicator)
function Grid2Options:DeleteIndicatorConfirm(indicator)
if self:IndicatorIsInUse(indicator) then
self:MessageDialog( L["This indicator cannot be deleted because is in use. Uncheck the statuses linked to the indicator first."] )
else
Expand Down Expand Up @@ -191,7 +191,7 @@ do
end

local function DeleteIndicator(info, name)
Grid2Options:DeleteIndicator( Grid2.indicators[name] )
Grid2Options:DeleteIndicatorConfirm( Grid2.indicators[name] )
end

-- function ToggleTestMode()
Expand Down

0 comments on commit 3616e1f

Please sign in to comment.