Changeset View
Changeset View
Standalone View
Standalone View
applets/devicenotifier/package/contents/ui/devicenotifier.qml
Show First 20 Lines • Show All 253 Lines • ▼ Show 20 Line(s) | 252 | if (!popped) { | |||
---|---|---|---|---|---|
254 | // (versus only hovered) for autohide purposes | 254 | // (versus only hovered) for autohide purposes | ||
255 | devicenotifier.itemClicked = true; | 255 | devicenotifier.itemClicked = true; | ||
256 | expandedDevice = ""; | 256 | expandedDevice = ""; | ||
257 | devicenotifier.currentIndex = -1; | 257 | devicenotifier.currentIndex = -1; | ||
258 | } | 258 | } | ||
259 | } | 259 | } | ||
260 | 260 | | |||
261 | function expandDevice(udi) { | 261 | function expandDevice(udi) { | ||
262 | if (hpSource.data[udi]["actions"].length > 1) { | 262 | if (hpSource.data[udi]["actions"].length > 0) { | ||
263 | expandedDevice = udi | 263 | expandedDevice = udi | ||
264 | } | 264 | } | ||
265 | 265 | | |||
266 | // reset the property that lets us remember if an item was clicked | 266 | // reset the property that lets us remember if an item was clicked | ||
267 | // (versus only hovered) for autohide purposes | 267 | // (versus only hovered) for autohide purposes | ||
268 | devicenotifier.itemClicked = false; | 268 | devicenotifier.itemClicked = false; | ||
269 | 269 | | |||
270 | devicenotifier.popupIcon = "preferences-desktop-notification"; | 270 | devicenotifier.popupIcon = "preferences-desktop-notification"; | ||
Show All 36 Lines |