Thanks, it worked.
Is there a variable or something that I can check at runtime to see if
my plasmoid is running in plasmoidviewer or not?
if in_plasmoidviewer:
self.connect(self.lmSensorsEngine, SIGNAL('sourceAdded(const
QString &)'), self, SLOT('addSource(const QString &)'))
else:
for sourceName in self.lmSensorsEngine.sources():
self.addSource(sourceName)
Thanks,
Alex
On 03/31/2012 09:45 PM, Shaun Reich wrote:
because when it's in plasma-desktop, all of the sources are already
created. but in plasmoidviewer, it's starting everything from scratch.
i'm guessing that's the problem, so you just need to iterate over
dataengine::sources() on init.
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel