Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/global/Globals.qml
Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Line(s) | 195 | globals.inhibited = Qt.binding(function() { | |||
---|---|---|---|---|---|
199 | if (!isNaN(inhibitedUntil.getTime())) { | 199 | if (!isNaN(inhibitedUntil.getTime())) { | ||
200 | inhibited |= (new Date().getTime() < inhibitedUntil.getTime()); | 200 | inhibited |= (new Date().getTime() < inhibitedUntil.getTime()); | ||
201 | } | 201 | } | ||
202 | 202 | | |||
203 | if (notificationSettings.notificationsInhibitedByApplication) { | 203 | if (notificationSettings.notificationsInhibitedByApplication) { | ||
204 | inhibited |= true; | 204 | inhibited |= true; | ||
205 | } | 205 | } | ||
206 | 206 | | |||
207 | if (notificationSettings.inhibitNotificationsWhenScreensMirrored) { | ||||
208 | inhibited |= notificationSettings.screensMirrored; | ||||
209 | } | ||||
210 | | ||||
207 | return inhibited; | 211 | return inhibited; | ||
208 | }); | 212 | }); | ||
209 | } | 213 | } | ||
210 | 214 | | |||
211 | function positionPopups() { | 215 | function positionPopups() { | ||
212 | if (!plasmoid) { | 216 | if (!plasmoid) { | ||
213 | return; | 217 | return; | ||
214 | } | 218 | } | ||
▲ Show 20 Lines • Show All 233 Lines • Show Last 20 Lines |