Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/main.qml
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Line(s) | 34 | Item { | |||
---|---|---|---|---|---|
146 | 146 | | |||
147 | Binding { | 147 | Binding { | ||
148 | target: plasmoid.nativeInterface | 148 | target: plasmoid.nativeInterface | ||
149 | property: "dragPixmapSize" | 149 | property: "dragPixmapSize" | ||
150 | value: units.iconSizes.large | 150 | value: units.iconSizes.large | ||
151 | } | 151 | } | ||
152 | 152 | | |||
153 | function closePassivePlasmoid() { | 153 | function closePassivePlasmoid() { | ||
154 | if (plasmoid.status !== PlasmaCore.Types.PassiveStatus) { | 154 | if (plasmoid.status !== PlasmaCore.Types.PassiveStatus && plasmoid.hideOnWindowDeactivate) { | ||
155 | plasmoid.expanded = false; | 155 | plasmoid.expanded = false; | ||
156 | } | 156 | } | ||
157 | } | 157 | } | ||
158 | 158 | | |||
159 | function action_clearHistory() { | 159 | function action_clearHistory() { | ||
160 | historyModel.clear(NotificationManager.Notifications.ClearExpired); | 160 | historyModel.clear(NotificationManager.Notifications.ClearExpired); | ||
161 | if (historyModel.count === 0) { | 161 | if (historyModel.count === 0) { | ||
162 | closePassivePlasmoid(); | 162 | closePassivePlasmoid(); | ||
Show All 21 Lines |