From 40ebb2a49bab2ffe264d74377427144804316389 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sat, 18 Apr 2009 13:13:21 +0000 Subject: [PATCH] Setting eol-style, bumping .TOC and providing support for data feeds that dynamically change their type --- NinjaPanel.lua | 4 +++- NinjaPanel.toc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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 -- 1.7.9.5