Changeset View
Changeset View
Standalone View
Standalone View
applets/systemmonitor/common/contents/ui/Applet.qml
Context not available. | |||||
24 | import org.kde.plasma.core 2.0 as PlasmaCore | 24 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
---|---|---|---|---|---|
25 | import org.kde.plasma.components 2.0 as PlasmaComponents | 25 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
26 | import org.kde.plasma.extras 2.0 as PlasmaExtras | 26 | import org.kde.plasma.extras 2.0 as PlasmaExtras | ||
27 | import org.kde.kquickcontrolsaddons 2.0 as KQuickAddons | | |||
28 | 27 | | |||
29 | Item { | 28 | Item { | ||
30 | id: rootItem | 29 | id: rootItem | ||
Context not available. | |||||
83 | engine: "systemmonitor" | 82 | engine: "systemmonitor" | ||
84 | interval: 2000 | 83 | interval: 2000 | ||
85 | onSourceAdded: { | 84 | onSourceAdded: { | ||
86 | if (plasmoid.configuration.sources.length > 0 && | 85 | if (plasmoid.configuration.sources && plasmoid.configuration.sources.length > 0 && | ||
87 | plasmoid.configuration.sources.indexOf(encodeURIComponent(source)) === -1) { | 86 | plasmoid.configuration.sources.indexOf(encodeURIComponent(source)) === -1) { | ||
88 | return; | 87 | return; | ||
89 | } | 88 | } | ||
Context not available. |