Quantcast

Setting eol-style, bumping .TOC and providing support for data feeds that dynamically change their type

James Whitehead II [04-18-09 - 13:13]
Setting eol-style, bumping .TOC and providing support for data feeds that dynamically change their type
Filename
NinjaPanel.lua
NinjaPanel.toc
diff --git a/NinjaPanel.lua b/NinjaPanel.lua
index 920e383..a430c06 100644
--- a/NinjaPanel.lua
+++ b/NinjaPanel.lua
@@ -252,7 +252,9 @@ function NinjaPanel:UpdatePlugin(event, name, key, value, dataobj)
 	local entry = self.plugins[name]
 	local button = entry.button

-	if key == "text" then
+    if key == "type" then
+        self:UpdatePanels()
+    elseif key == "text" then
 		button.text:SetFormattedText("%s", value or "")
 		self:UpdateButtonWidth(button)
 	elseif key == "icon" then
diff --git a/NinjaPanel.toc b/NinjaPanel.toc
index 70dba95..5fd1145 100644
--- a/NinjaPanel.toc
+++ b/NinjaPanel.toc
@@ -1,4 +1,4 @@
-## Interface: 30000
+## Interface: 30100
 ## Title: NinjaPanel
 ## Author: Cladhaire
 ## Version: wowi:revision