mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 07:57:19 +00:00
added support of several custom commands to dataengine
This commit is contained in:
parent
757d7b703f
commit
90ca8c89f5
@ -398,10 +398,12 @@ bool ExtendedSysMon::updateSourceEvent(const QString &source)
|
|||||||
{
|
{
|
||||||
QString key;
|
QString key;
|
||||||
if (source == QString("custom")) {
|
if (source == QString("custom")) {
|
||||||
key = QString("custom");
|
for (int i=0; i<configuration[QString("CUSTOM")].split(QString("@@"), QString::SkipEmptyParts).count(); i++) {
|
||||||
QString value = getCustomCmd(configuration[QString("CUSTOM")]);
|
key = QString("custom") + QString::number(i);
|
||||||
|
QString value = getCustomCmd(configuration[QString("CUSTOM")].split(QString("@@"), QString::SkipEmptyParts)[i]);
|
||||||
setData(source, key, value);
|
setData(source, key, value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (source == QString("gpu")) {
|
else if (source == QString("gpu")) {
|
||||||
key = QString("GPU");
|
key = QString("GPU");
|
||||||
float value = getGpu(configuration[QString("GPUDEV")]);
|
float value = getGpu(configuration[QString("GPUDEV")]);
|
||||||
|
Loading…
Reference in New Issue
Block a user