Quantcast

Fixed an issue where clicks weren't applying after the MAX or EDIT buttons were used

James Whitehead II [01-11-07 - 13:21]
Fixed an issue where clicks weren't applying after the MAX or EDIT buttons were used
Filename
Clique.lua
CliqueOptions.lua
diff --git a/Clique.lua b/Clique.lua
index 9391b6b..3a0e9db 100644
--- a/Clique.lua
+++ b/Clique.lua
@@ -143,6 +143,9 @@ function Clique:SpellBookButtonPressed()

     self.editSet[key] = t
     self:ListScrollUpdate()
+	self:UpdateClicks()
+	-- We can only make changes when out of combat
+	self:PLAYER_REGEN_ENABLED()
 end

 function Clique:PLAYER_REGEN_ENABLED()
diff --git a/CliqueOptions.lua b/CliqueOptions.lua
index 2f30714..fe9cbdf 100644
--- a/CliqueOptions.lua
+++ b/CliqueOptions.lua
@@ -1053,6 +1053,7 @@ function Clique:ButtonOnClick(button)

 		self:DeleteAction(entry)
 		self:UpdateClicks()
+		self:PLAYER_REGEN_ENABLED()
 		entry = nil

         self:ListScrollUpdate()
@@ -1064,6 +1065,7 @@ function Clique:ButtonOnClick(button)
         entry.arg2 = nil
 		self:DeleteAction(entry)
 		self:UpdateClicks()
+		self:PLAYER_REGEN_ENABLED()
     elseif this == CliqueButtonCustom then
         if CliqueCustomFrame:IsVisible() then
             CliqueCustomFrame:Hide()
@@ -1234,6 +1236,7 @@ function Clique:ButtonOnClick(button)
 		local key = entry.modifier..entry.button
 		self.editSet[key] = entry
 		self:UpdateClicks()
+		self:PLAYER_REGEN_ENABLED()
 		self:ButtonOnClick(CliqueCustomButtonCancel)
 	end