diff SkeletonKey/KeyButton.lua @ 34:daff39af0c6d

changeset logjam
author Nenue
date Tue, 16 Aug 2016 10:24:55 -0400
parents b0e4d04d428a
children 9a9d7f2a7c07
line wrap: on
line diff
--- a/SkeletonKey/KeyButton.lua	Tue Aug 16 10:22:48 2016 -0400
+++ b/SkeletonKey/KeyButton.lua	Tue Aug 16 10:24:55 2016 -0400
@@ -357,6 +357,7 @@
     end
   end
 
+
   if self.command then
     print('['..slot..'] =', self.command, GetBindingKey(self.command))
 
@@ -447,6 +448,10 @@
       self.icon:SetTexture(GetSpellTexture(self.actionID))
     end
   else
+    if kb.saveTarget == self then
+      kb.DeactivateSlot(self)
+    end
+
     self.ignoreTexture:Hide()
   end