Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

Commit

Permalink
Fixed ticket 834 Show offline option broken. Thanks Samuelreus.
Browse files Browse the repository at this point in the history
Fixed ticket 833 Layout none in non-English locale.  Thanks Elnarfim.
Mark code for splitGroups as debug in Layouts because the option is marked
  as debug. Should fix odd behavior for people who had option enabled before
  the option was disabled.
  • Loading branch information
treliss committed Jul 24, 2016
1 parent 0219f9a commit 69d0926
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
### Version 7.0.3.1

* Fixed ticket 834 Show offline option broken. Thanks Samuelreus.
* Fixed ticket 833 Layout none in non-English locale. Thanks Elnarfim.
* Package with libraries should include new LibResInfo for ticket 828.
* Mark code for splitGroups as debug in Layouts because the option is marked
as debug. Should fix odd behavior for people who had option enabled before
the option was disabled.

### Version 7.0.3.0-beta

* Updated for WoW 7.0 (Legion)
Expand Down
4 changes: 2 additions & 2 deletions Layout.lua
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ GridLayout.options = {
width = "double",
type = "toggle",
set = function(info, v)
GridLayout.db.profile.showOffile = v
GridLayout.db.profile.showOffline = v
GridLayout:GetModule("GridLayoutManager"):UpdateLayouts()
end,
},
Expand Down Expand Up @@ -1136,7 +1136,7 @@ end

function GridLayout:UpdateVisibility()
--self:Debug("UpdateVisibility")
if self.db.profile.layouts[(GridRoster:GetPartyState())] == L["None"] then
if self.db.profile.layouts[(GridRoster:GetPartyState())] == "None" then
self.frame.backdrop:Hide()
else
self.frame.backdrop:Show()
Expand Down
4 changes: 4 additions & 0 deletions Layouts.lua
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,17 @@ function Manager:UpdateLayouts(event)
lastShowPets = showPets

-- Update class and role layouts
--@debug@
if splitGroups then
UpdateSplitGroups(Layouts.ByClass, numGroups, showPets)
UpdateSplitGroups(Layouts.ByRole, numGroups, showPets)
else
--@end-debug@
UpdateMergedGroups(Layouts.ByClass, numGroups, showPets)
UpdateMergedGroups(Layouts.ByRole, numGroups, showPets)
--@debug@
end
--@end-debug@

-- By group should always be split group
UpdateSplitGroups(Layouts.ByGroup, usedGroups, showPets)
Expand Down

0 comments on commit 69d0926

Please sign in to comment.