New release

Leandro Silva [11-20-18 - 10:45]
New release
Filename
LeoGuildManager.lua
LeoGuildManager.txt
LeoGuildManagerInit.lua
LeoGuildManagerUI.lua
diff --git a/LeoGuildManager.lua b/LeoGuildManager.lua
index 8608798..f7f31fc 100644
--- a/LeoGuildManager.lua
+++ b/LeoGuildManager.lua
@@ -407,7 +407,7 @@ function LeoGuildManager.CreatePurgeDescription(guildName)
     if ignoreRank > 0 then
         local rankName = LeoGuildManager.GetGuildRankName(guildId, LeoGuildManager.globalData.settings.guilds[guildName].ignoreRank)
         if not hasCond then
-            descPurge = descPurge == "\r\n"
+            descPurge = descPurge .. "\r\n"
         end
         descPurge = descPurge .. "Ignore members with rank equal or above " .. rankName .. "."
     end
diff --git a/LeoGuildManager.txt b/LeoGuildManager.txt
index 05be95e..20d101c 100644
--- a/LeoGuildManager.txt
+++ b/LeoGuildManager.txt
@@ -1,7 +1,7 @@
 ## Title: Leo's Guild Manager
 ## APIVersion: 100024 100025
-## Version: 1.1.8
-## AddOnVersion: 118
+## Version: 1.1.9
+## AddOnVersion: 119
 ## Author: |c39B027@LeandroSilva|r
 ## SavedVariables: LeoGuildManagerGlobalData LeoGuildManagerScanData
 ## OptionalDependsOn: LibStub LibFeedback LibAddonMenu-2.0
diff --git a/LeoGuildManagerInit.lua b/LeoGuildManagerInit.lua
index 5beb142..6a59d14 100644
--- a/LeoGuildManagerInit.lua
+++ b/LeoGuildManagerInit.lua
@@ -4,7 +4,7 @@ LeoGuildManagerUI = LeoGuildManagerUI or {}

 LeoGuildManager.name = "LeoGuildManager"
 LeoGuildManager.displayName = "Leo's Guild Manager"
-LeoGuildManager.version = "1.1.8"
+LeoGuildManager.version = "1.1.9"
 LeoGuildManager.chatPrefix = "|c39B027" .. LeoGuildManager.name .. "|r: "

 LeoGuildManager.TAB_PURGE = "Purge"
diff --git a/LeoGuildManagerUI.lua b/LeoGuildManagerUI.lua
index e90004f..2abaad8 100644
--- a/LeoGuildManagerUI.lua
+++ b/LeoGuildManagerUI.lua
@@ -116,9 +116,11 @@ end
 local function updateEndangered()
     LeoGuildManagerWindowPurgePanelListResult:SetText("Selected: " .. #LeoGuildManager.endangered .. " / " .. purgeTotal)
     if #LeoGuildManager.endangered > 0 then
+        LeoGuildManagerWindowPurgePanelPromoteButton:SetEnabled(true)
         LeoGuildManagerWindowPurgePanelDemoteButton:SetEnabled(true)
         LeoGuildManagerWindowPurgePanelKickButton:SetEnabled(true)
     else
+        LeoGuildManagerWindowPurgePanelPromoteButton:SetEnabled(false)
         LeoGuildManagerWindowPurgePanelDemoteButton:SetEnabled(false)
         LeoGuildManagerWindowPurgePanelKickButton:SetEnabled(false)
     end
@@ -580,6 +582,7 @@ end
 function LeoGuildManager.ClearList()
     LeoGuildManager.members = {}
     LeoGuildManagerMemberList:RefreshData()
+    LeoGuildManagerWindowPurgePanelPromoteButton:SetEnabled(false)
     LeoGuildManagerWindowPurgePanelDemoteButton:SetEnabled(false)
     LeoGuildManagerWindowPurgePanelKickButton:SetEnabled(false)
 end