Changeset View
Changeset View
Standalone View
Standalone View
applets/systemmonitor/common/contents/ui/Applet.qml
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 75 | for (var i in smSource.sources) { | |||
---|---|---|---|---|---|
76 | smSource.sourceAdded(smSource.sources[i]); | 76 | smSource.sourceAdded(smSource.sources[i]); | ||
77 | } | 77 | } | ||
78 | } | 78 | } | ||
79 | 79 | | |||
80 | PlasmaCore.DataSource { | 80 | PlasmaCore.DataSource { | ||
81 | id: smSource | 81 | id: smSource | ||
82 | 82 | | |||
83 | engine: "systemmonitor" | 83 | engine: "systemmonitor" | ||
84 | interval: 2000 | 84 | interval: plasmoid.configuration.updateInterval | ||
85 | onSourceAdded: { | 85 | onSourceAdded: { | ||
86 | if (plasmoid.configuration.sources.length > 0 && | 86 | if (plasmoid.configuration.sources.length > 0 && | ||
87 | plasmoid.configuration.sources.indexOf(encodeURIComponent(source)) === -1) { | 87 | plasmoid.configuration.sources.indexOf(encodeURIComponent(source)) === -1) { | ||
88 | return; | 88 | return; | ||
89 | } | 89 | } | ||
90 | rootItem.sourceAdded(source); | 90 | rootItem.sourceAdded(source); | ||
91 | } | 91 | } | ||
92 | onSourceRemoved: { | 92 | onSourceRemoved: { | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |