def getPluginsForMenu(self, menuid):
res = [ ]
- for p in self.getPlugins(PluginDescriptor.WHERE_SETUP):
+ for p in self.getPlugins(PluginDescriptor.WHERE_MENU):
res += p(menuid)
return res
def resetWarnings(self):
self.warnings = [ ]
+ def getNextWakeupTime(self):
+ wakeup = -1
+ for p in self.pluginList:
+ current = p.getWakeupTime()
+ if current > -1 and wakeup < current:
+ wakeup = current
+ return int(wakeup)
+
plugins = PluginComponent()