Changeset View
Changeset View
Standalone View
Standalone View
applets/devicenotifier/package/contents/ui/devicenotifier.qml
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Line(s) | 97 | Plasmoid.compactRepresentation: PlasmaCore.IconItem { | |||
---|---|---|---|---|---|
104 | } | 104 | } | ||
105 | } | 105 | } | ||
106 | Plasmoid.fullRepresentation: FullRepresentation {} | 106 | Plasmoid.fullRepresentation: FullRepresentation {} | ||
107 | 107 | | |||
108 | PlasmaCore.DataSource { | 108 | PlasmaCore.DataSource { | ||
109 | id: sdSource | 109 | id: sdSource | ||
110 | engine: "soliddevice" | 110 | engine: "soliddevice" | ||
111 | connectedSources: hpSource.sources | 111 | connectedSources: hpSource.sources | ||
112 | interval: plasmoid.expanded ? 5000 : 0 | 112 | interval: 0 | ||
113 | property string last | 113 | property string last | ||
114 | onSourceAdded: { | 114 | onSourceAdded: { | ||
115 | disconnectSource(source); | 115 | disconnectSource(source); | ||
116 | connectSource(source); | 116 | connectSource(source); | ||
117 | last = source; | 117 | last = source; | ||
118 | processLastDevice(true); | 118 | processLastDevice(true); | ||
119 | } | 119 | } | ||
120 | 120 | | |||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |