Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/main.qml
Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Line(s) | 33 | MouseEventListener { | |||
---|---|---|---|---|---|
149 | Component.onCompleted: { | 149 | Component.onCompleted: { | ||
150 | plasmoid.setAction("clearNotifications", i18n("Clear Notifications"), "edit-clear-history") | 150 | plasmoid.setAction("clearNotifications", i18n("Clear Notifications"), "edit-clear-history") | ||
151 | var clearAction = plasmoid.action("clearNotifications"); | 151 | var clearAction = plasmoid.action("clearNotifications"); | ||
152 | clearAction.visible = Qt.binding(function() { | 152 | clearAction.visible = Qt.binding(function() { | ||
153 | return notificationsApplet.notifications && (notificationsApplet.notifications.count > 0 || notificationsApplet.notifications.historyCount > 0); | 153 | return notificationsApplet.notifications && (notificationsApplet.notifications.count > 0 || notificationsApplet.notifications.historyCount > 0); | ||
154 | }) | 154 | }) | ||
155 | 155 | | |||
156 | if (KCMShell.authorize("kcmnotify.desktop").length > 0) { | 156 | if (KCMShell.authorize("kcmnotify.desktop").length > 0) { | ||
157 | plasmoid.setAction("notificationskcm", i18n("&Configure Event Notifications and Actions..."), "preferences-desktop-notification") | 157 | plasmoid.setAction("notificationskcm", i18n("&Configure Event Notifications and Actions..."), "preferences-desktop-notification-bell") | ||
158 | } | 158 | } | ||
159 | } | 159 | } | ||
160 | } | 160 | } |