Tweaks to plugins tray messages.

This commit is contained in:
Alex Dedul 2007-08-11 00:20:21 +00:00
parent 371e1f9a54
commit 9ae50f72d9
1 changed files with 5 additions and 2 deletions

View File

@ -97,8 +97,11 @@ class PluginManager:
tray_message = ""
for name in self.enabled_plugins.keys():
plugin = self.enabled_plugins[name]
if 'get_tray_message' in dir(plugin):
tray_message = tray_message + '\n' + plugin.get_tray_message()
if hasattr(plugin, 'get_tray_message'):
plugin_tray_message = plugin.get_tray_message()
if plugin_tray_message:
tray_message += '\n' + plugin_tray_message
return tray_message
def update_active_plugins(self):