Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/FullRepresentation.qml
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Line(s) | 92 | if (!Globals.inhibited) { | |||
---|---|---|---|---|---|
94 | // shows ontop of CheckBox to hide the fact that it's unchecked | 94 | // shows ontop of CheckBox to hide the fact that it's unchecked | ||
95 | // until you actually select something :) | 95 | // until you actually select something :) | ||
96 | dndMenu.open(0, 0); | 96 | dndMenu.open(0, 0); | ||
97 | } | 97 | } | ||
98 | } | 98 | } | ||
99 | // but disable only on click | 99 | // but disable only on click | ||
100 | onClicked: { | 100 | onClicked: { | ||
101 | if (Globals.inhibited) { | 101 | if (Globals.inhibited) { | ||
102 | notificationSettings.notificationsInhibitedUntil = undefined; | 102 | Globals.revokeInhibitions(); | ||
103 | notificationSettings.revokeApplicationInhibitions(); | | |||
104 | // overrules current mirrored screen setup, updates again when screen configuration changes | | |||
105 | notificationSettings.screensMirrored = false; | | |||
106 | | ||||
107 | notificationSettings.save(); | | |||
108 | } | 103 | } | ||
109 | } | 104 | } | ||
110 | 105 | | |||
111 | contentItem: RowLayout { | 106 | contentItem: RowLayout { | ||
112 | spacing: dndCheck.spacing | 107 | spacing: dndCheck.spacing | ||
113 | 108 | | |||
114 | PlasmaCore.IconItem { | 109 | PlasmaCore.IconItem { | ||
115 | Layout.leftMargin: dndCheck.mirrored ? 0 : dndCheck.indicator.width + dndCheck.spacing | 110 | Layout.leftMargin: dndCheck.mirrored ? 0 : dndCheck.indicator.width + dndCheck.spacing | ||
▲ Show 20 Lines • Show All 487 Lines • Show Last 20 Lines |