-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathshell.qml
More file actions
772 lines (692 loc) 路 27 KB
/
Copy pathshell.qml
File metadata and controls
772 lines (692 loc) 路 27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
//@ pragma UseQApplication
//@ pragma Env QS_NO_RELOAD_POPUP=1
//@ pragma DefaultEnv QSG_RENDER_LOOP=threaded
//@ pragma DefaultEnv QT_QUICK_CONTROLS_STYLE=Basic
//@ pragma DefaultEnv QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000
//@ pragma DefaultEnv QS_DROP_EXPENSIVE_FONTS=1
//@ pragma IconTheme WhiteSur
import QtQuick
import Quickshell
import Quickshell.Io
import Quickshell.Services.Notifications
import "service"
import "widget/bar"
import "widget/capture"
import "widget/desktop"
import "widget/dock"
import "widget/idle"
import "widget/lockscreen"
import "widget/notification"
import "widget/osd"
import "widget/polkit"
import "components"
ShellRoot {
id: root
readonly property bool batteryPolicyReady: BatteryService.policyReady
readonly property bool calendarDaemonReady: CalendarService.ready
readonly property bool coreDaemonReady: CoreService.ready
property var lazyOpenRequests: ({})
readonly property bool profileImageSyncBusy: ProfileImageService.busy
function clearLazyOpenRequest(loader) {
if (!loader || !loader.objectName)
return;
var request = lazyOpenRequests[loader.objectName];
if (!request)
return;
try {
loader.activeChanged.disconnect(request.activeHandler);
} catch (error) {}
try {
loader.loadingChanged.disconnect(request.loadingHandler);
} catch (error) {}
var requests = Object.assign({}, lazyOpenRequests);
delete requests[loader.objectName];
lazyOpenRequests = requests;
}
function hideLazyWindow(loader, methodName) {
clearLazyOpenRequest(loader);
if (loader.active && loader.item && loader.item[methodName]) {
loader.item[methodName]();
return;
}
if (loader.loading) {
loader.loading = false;
return;
}
}
function scheduleLazyUnload(loader, dismissedItem) {
Qt.callLater(function () {
if (!loader.active || loader.item !== dismissedItem)
return;
// A window may be reopened between `dismissed` and this deferred
// cleanup. Never destroy the newly reopened instance.
if (dismissedItem && dismissedItem.visible)
return;
root.clearLazyOpenRequest(loader);
loader.active = false;
});
}
function showLazyWindow(loader, methodName) {
if (loader.active) {
if (loader.item && loader.item[methodName])
loader.item[methodName]();
return;
}
if (loader.loading)
return;
clearLazyOpenRequest(loader);
var activeHandler = function activeHandler() {
if (loader.active && loader.item) {
if (loader.item[methodName])
loader.item[methodName]();
root.clearLazyOpenRequest(loader);
}
};
var loadingHandler = function loadingHandler() {
if (!loader.loading && !loader.active)
root.clearLazyOpenRequest(loader);
};
var requests = Object.assign({}, lazyOpenRequests);
requests[loader.objectName] = {
"activeHandler": activeHandler,
"loadingHandler": loadingHandler
};
lazyOpenRequests = requests;
loader.activeChanged.connect(activeHandler);
loader.loadingChanged.connect(loadingHandler);
loader.loading = true;
}
function toggleLazyWindow(loader, openMethod, closeMethod, isOpen) {
if (loader.active && loader.item && isOpen(loader.item))
loader.item[closeMethod]();
else if (loader.loading)
hideLazyWindow(loader, closeMethod);
else
showLazyWindow(loader, openMethod);
}
settings.watchFiles: true
Component.onCompleted: {
BackdropService.generate();
DisplayHotplugService.start();
StateManager.controlPanelLoader = controlRightLoader;
StateManager.controlLeftPanelLoader = controlLeftLoader;
StateManager.calendarAppLoader = calendarAppLoader;
StateManager.lockscreenLoader = lockscreenLoader;
StateManager.settingsHubLoader = settingsHubLoader;
}
Component.onDestruction: {
if (StateManager.controlPanelLoader === controlRightLoader)
StateManager.controlPanelLoader = null;
if (StateManager.controlLeftPanelLoader === controlLeftLoader)
StateManager.controlLeftPanelLoader = null;
if (StateManager.calendarAppLoader === calendarAppLoader)
StateManager.calendarAppLoader = null;
if (StateManager.lockscreenLoader === lockscreenLoader)
StateManager.lockscreenLoader = null;
if (StateManager.settingsHubLoader === settingsHubLoader)
StateManager.settingsHubLoader = null;
}
Backdrop {
}
Desktop {
}
Variants {
model: Quickshell.screens
delegate: Component {
EdgeTrigger {
required property var modelData
edgeSide: Qt.LeftEdge
screen: modelData
onDragFinished: shouldOpen => StateManager.finishControlLeftEdgeDrag(shouldOpen)
onDragMoved: progress => StateManager.updateControlLeftEdgeDrag(progress)
onDragStarted: StateManager.beginControlLeftEdgeDrag(modelData)
}
}
}
Variants {
model: Quickshell.screens
delegate: Component {
EdgeTrigger {
required property var modelData
edgeSide: Qt.RightEdge
screen: modelData
onDragFinished: shouldOpen => StateManager.finishControlRightEdgeDrag(shouldOpen)
onDragMoved: progress => StateManager.updateControlRightEdgeDrag(progress)
onDragStarted: StateManager.beginControlRightEdgeDrag(modelData)
}
}
}
Variants {
model: Quickshell.screens
delegate: Component {
Bar {
required property var modelData
screen: modelData
}
}
}
Variants {
model: Quickshell.screens
delegate: Component {
Dock {
required property var modelData
screen: modelData
onLauncherRequested: root.showLazyWindow(launcherLoader, "openAllApps")
}
}
}
Variants {
model: Quickshell.screens
delegate: Component {
LazyLoader {
required property var modelData
readonly property bool requested: CaptureService.screenshotEditorVisible && (CaptureService.screenshotEditorScreenName === "" || CaptureService.screenshotEditorScreenName === modelData.name)
function syncRequestedState() {
if (requested) {
if (!active && !loading)
loading = true;
} else if (active) {
active = false;
} else if (loading) {
loading = false;
}
}
Component.onCompleted: syncRequestedState()
onRequestedChanged: syncRequestedState()
ScreenshotEditor {
screen: modelData
}
}
}
}
Variants {
model: Quickshell.screens
delegate: Component {
IdleDimOverlay {
required property var modelData
screen: modelData
}
}
}
Variants {
model: Quickshell.screens
delegate: Component {
LazyLoader {
id: osdSurfaceLoader
required property var modelData
readonly property bool requested: PopupSurfaceService.osdSurfaceRequested && PopupSurfaceService.osdScreenName === modelData.name
function syncRequestedState() {
if (requested) {
if (!active && !loading)
loading = true;
} else if (active) {
active = false;
} else if (loading) {
loading = false;
}
}
Component.onCompleted: syncRequestedState()
onRequestedChanged: syncRequestedState()
OSD {
screen: osdSurfaceLoader.modelData
}
}
}
}
Variants {
model: Quickshell.screens
delegate: Component {
LazyLoader {
id: notificationSurfaceLoader
property Connections itemConnections: Connections {
function onIdle() {
PopupSurfaceService.notificationSurfaceIdle(notificationSurfaceLoader.modelData.name);
}
target: notificationSurfaceLoader.active ? notificationSurfaceLoader.item : null
}
required property var modelData
property Connections queueConnections: Connections {
function onNotificationQueued(screenName) {
if (screenName !== notificationSurfaceLoader.modelData.name)
return;
notificationSurfaceLoader.syncRequestedState();
if (notificationSurfaceLoader.active)
Qt.callLater(notificationSurfaceLoader.deliverPending);
}
target: PopupSurfaceService
}
readonly property bool requested: PopupSurfaceService.notificationSurfaceRequested(modelData.name)
function deliverPending() {
if (!active || !item)
return;
var queued = PopupSurfaceService.takeNotifications(modelData.name);
for (var index = 0; index < queued.length; ++index)
item["enqueueNotification"](queued[index], true);
if (item["empty"])
PopupSurfaceService.notificationSurfaceIdle(modelData.name);
}
function syncRequestedState() {
if (requested) {
if (!active && !loading)
loading = true;
} else if (active) {
active = false;
} else if (loading) {
loading = false;
}
}
Component.onCompleted: syncRequestedState()
onActiveChanged: {
if (active)
Qt.callLater(deliverPending);
}
onRequestedChanged: syncRequestedState()
NotificationPopups {
screen: notificationSurfaceLoader.modelData
}
}
}
}
Variants {
model: Quickshell.screens
delegate: Component {
LazyLoader {
id: screenshotNotificationSurfaceLoader
property Connections itemConnections: Connections {
function onIdle() {
PopupSurfaceService.screenshotNotificationSurfaceIdle(screenshotNotificationSurfaceLoader.modelData.name);
}
target: screenshotNotificationSurfaceLoader.active ? screenshotNotificationSurfaceLoader.item : null
}
required property var modelData
property Connections queueConnections: Connections {
function onScreenshotNotificationQueued(screenName) {
if (screenName !== screenshotNotificationSurfaceLoader.modelData.name)
return;
screenshotNotificationSurfaceLoader.syncRequestedState();
if (screenshotNotificationSurfaceLoader.active)
Qt.callLater(screenshotNotificationSurfaceLoader.deliverPending);
}
target: PopupSurfaceService
}
readonly property bool requested: PopupSurfaceService.screenshotNotificationSurfaceRequested(modelData.name)
function deliverPending() {
if (!active || !item)
return;
var queued = PopupSurfaceService.takeScreenshotNotifications(modelData.name);
for (var index = 0; index < queued.length; ++index)
item["enqueueNotification"](queued[index], true);
if (item["empty"])
PopupSurfaceService.screenshotNotificationSurfaceIdle(modelData.name);
}
function syncRequestedState() {
if (requested) {
if (!active && !loading)
loading = true;
} else if (active) {
active = false;
} else if (loading) {
loading = false;
}
}
Component.onCompleted: syncRequestedState()
onActiveChanged: {
if (active)
Qt.callLater(deliverPending);
}
onRequestedChanged: syncRequestedState()
ScreenshotNotificationPopup {
screen: screenshotNotificationSurfaceLoader.modelData
}
}
}
}
LazyLoader {
id: powerLoader
active: false
objectName: "powerLoader"
source: Qt.resolvedUrl("widget/power/Power.qml")
}
LazyLoader {
id: wallpaperSelectorLoader
active: false
objectName: "wallpaperSelectorLoader"
source: Qt.resolvedUrl("widget/desktop/SelectWallpaper.qml")
}
LazyLoader {
id: launcherLoader
active: false
objectName: "launcherLoader"
source: Qt.resolvedUrl("widget/launcher/Launcher.qml")
}
LazyLoader {
id: controlLeftLoader
active: false
objectName: "controlLeftLoader"
source: Qt.resolvedUrl("widget/control/left/ControlLeft.qml")
}
LazyLoader {
id: controlRightLoader
active: false
objectName: "controlRightLoader"
source: Qt.resolvedUrl("widget/control/right/ControlRight.qml")
}
LazyLoader {
id: calendarAppLoader
active: false
objectName: "calendarAppLoader"
source: Qt.resolvedUrl("widget/calendar/CalendarApp.qml")
}
LazyLoader {
id: settingsHubLoader
active: false
objectName: "settingsHubLoader"
source: Qt.resolvedUrl("widget/settings/SettingsHub.qml")
}
LazyLoader {
id: lockscreenLoader
active: false
objectName: "lockscreenLoader"
source: Qt.resolvedUrl("widget/lockscreen/Lockscreen.qml")
}
LazyLoader {
id: polkitDialogLoader
active: PolkitService.active
PolkitDialog {
flow: PolkitService.flow
}
}
Connections {
function onDismissed() {
root.scheduleLazyUnload(powerLoader, target);
}
target: powerLoader.item
}
Connections {
function onDismissed() {
root.scheduleLazyUnload(wallpaperSelectorLoader, target);
}
target: wallpaperSelectorLoader.item
}
Connections {
function onDismissed() {
root.scheduleLazyUnload(launcherLoader, target);
}
target: launcherLoader.item
}
Connections {
function onDismissed() {
root.scheduleLazyUnload(controlLeftLoader, target);
}
target: controlLeftLoader.item
}
Connections {
function onDismissed() {
root.scheduleLazyUnload(controlRightLoader, target);
}
target: controlRightLoader.item
}
Connections {
function onDismissed() {
root.scheduleLazyUnload(calendarAppLoader, target);
}
target: calendarAppLoader.item
}
Connections {
function onDismissed() {
root.scheduleLazyUnload(settingsHubLoader, target);
}
target: settingsHubLoader.item
}
Connections {
function onDismissed() {
root.scheduleLazyUnload(lockscreenLoader, target);
}
target: lockscreenLoader.item
}
IpcHandler {
function status(): string {
return JSON.stringify({
"ready": CoreService.ready,
"daemonStatus": CoreService.daemonStatus,
"socketPath": CoreService.socketPath,
"statsEnabled": CoreService.statsEnabled,
"statsSubscribed": CoreService.statsSubscribed,
"lastStatsUpdate": CoreService.lastStatsUpdate,
"batteryEnabled": CoreService.batteryEnabled,
"batterySubscribed": CoreService.batterySubscribed,
"lastBatteryUpdate": CoreService.lastBatteryUpdate,
"updatesEnabled": CoreService.updatesEnabled,
"updatesSubscribed": CoreService.updatesSubscribed,
"lastUpdatesUpdate": CoreService.lastUpdatesUpdate
});
}
target: "core"
}
IpcHandler {
function hide(): bool {
IdleDimService.hide();
return true;
}
function show(): bool {
IdleDimService.show();
return true;
}
function status(): string {
return JSON.stringify({
"active": IdleDimService.active
});
}
target: "idleDim"
}
IpcHandler {
function hide() {
root.hideLazyWindow(powerLoader, "closeMenu");
}
function show() {
root.showLazyWindow(powerLoader, "openMenu");
}
function toggle() {
root.toggleLazyWindow(powerLoader, "openMenu", "closeMenu", item => {
return item.visible && item.menuOpen;
});
}
target: "power"
}
IpcHandler {
function hide() {
root.hideLazyWindow(wallpaperSelectorLoader, "closeSelector");
}
function refreshTheme() {
WallpaperService.applyTheme(WallpaperService.currentThemeSource());
}
function show() {
root.showLazyWindow(wallpaperSelectorLoader, "openSelector");
}
function status(): string {
var selectedBackend = WallpaperService.selectedBackend;
var runningBackend = EngineWallpaperService.active ? "engine" : LiveWallpaperService.active ? "live" : "";
return JSON.stringify({
"mode": WallpaperService.currentMode,
"themeMode": ThemeService.colorMode,
"activeThemeMode": ThemeService.activeMode,
"themeModeResolved": ThemeService.modeResolved,
"themePreviewActive": ThemeService.previewColorsActive,
"themeSource": ThemeService.activeSource,
"expectedThemeSource": ThemeService.expectedSource,
"themeSynchronized": ThemeService.themeAvailable,
"lightTheme": Config.lightTheme,
"runtimeBackground": String(Config.md3.background),
"runtimeOnSurface": String(Config.md3.on_surface),
"committedBackground": ThemeService.activeColors && ThemeService.activeColors.md3 ? String(ThemeService.activeColors.md3.background || "") : "",
"committedOnSurface": ThemeService.activeColors && ThemeService.activeColors.md3 ? String(ThemeService.activeColors.md3.on_surface || "") : "",
"colorTransitionRunning": ThemeService.colorTransition.running,
"qtColorScheme": Qt.styleHints.colorScheme === Qt.Dark ? "dark" : Qt.styleHints.colorScheme === Qt.Light ? "light" : "unknown",
"selectedBackend": selectedBackend,
"runningBackend": runningBackend,
"transitionPending": WallpaperService.isTransitionPending,
"selectedPath": WallpaperService.currentWallpaper,
"displayPath": WallpaperService.displayWallpaper,
"engineProjects": EngineWallpaperService.wallpapers.length,
"engineScanning": EngineWallpaperService.scanning,
"available": selectedBackend === "engine" ? EngineWallpaperService.available : selectedBackend === "live" ? LiveWallpaperService.available : true,
"availabilityKnown": selectedBackend === "engine" ? EngineWallpaperService.availabilityKnown : selectedBackend === "live" ? LiveWallpaperService.availabilityKnown : true,
"availabilityQueryRunning": selectedBackend === "engine" ? EngineWallpaperService.availabilityQuery.running : selectedBackend === "live" ? LiveWallpaperService.availabilityQuery.running : false,
"desiredPath": selectedBackend === "engine" ? EngineWallpaperService.desiredPath : selectedBackend === "live" ? LiveWallpaperService.desiredPath : "",
"activePath": runningBackend === "engine" ? EngineWallpaperService.activePath : runningBackend === "live" ? LiveWallpaperService.activePath : "",
"running": runningBackend !== "",
"error": selectedBackend === "engine" ? EngineWallpaperService.errorMessage : selectedBackend === "live" ? LiveWallpaperService.errorMessage : "",
"live": {
"available": LiveWallpaperService.available,
"active": LiveWallpaperService.active,
"playbackReady": LiveWallpaperService.playbackReadyState,
"desiredPath": LiveWallpaperService.desiredPath,
"activePath": LiveWallpaperService.activePath,
"error": LiveWallpaperService.errorMessage
},
"engine": {
"available": EngineWallpaperService.available,
"active": EngineWallpaperService.active,
"playbackReady": EngineWallpaperService.playbackReadyState,
"restarting": EngineWallpaperService.policyRestarting,
"desiredPath": EngineWallpaperService.desiredPath,
"activePath": EngineWallpaperService.activePath,
"error": EngineWallpaperService.errorMessage
}
});
}
function toggle() {
root.toggleLazyWindow(wallpaperSelectorLoader, "openSelector", "closeSelector", item => {
return item.visible;
});
}
target: "wallpaper"
}
IpcHandler {
function hide() {
root.hideLazyWindow(launcherLoader, "closeLauncher");
}
function show() {
root.showLazyWindow(launcherLoader, "openLauncher");
}
function toggle() {
root.toggleLazyWindow(launcherLoader, "openLauncher", "closeLauncher", item => {
return item.visible && item.active;
});
}
target: "launcher"
}
IpcHandler {
function hide() {
root.hideLazyWindow(calendarAppLoader, "closeCalendar");
}
function show() {
root.showLazyWindow(calendarAppLoader, "openCalendar");
}
function status(): string {
return JSON.stringify({
"active": calendarAppLoader.active,
"loading": calendarAppLoader.loading,
"hasItem": calendarAppLoader.item !== null,
"visible": calendarAppLoader.item ? calendarAppLoader.item.visible : false,
"open": calendarAppLoader.item ? calendarAppLoader.item.active : false
});
}
function toggle() {
root.toggleLazyWindow(calendarAppLoader, "openCalendar", "closeCalendar", item => {
return item.visible && item.active;
});
}
target: "calendar"
}
IpcHandler {
function hide() {
root.hideLazyWindow(settingsHubLoader, "closeSettings");
}
function show() {
root.showLazyWindow(settingsHubLoader, "openSettings");
}
function status(): string {
return JSON.stringify({
"active": settingsHubLoader.active,
"loading": settingsHubLoader.loading,
"hasItem": settingsHubLoader.item !== null,
"visible": settingsHubLoader.item ? settingsHubLoader.item.visible : false,
"open": settingsHubLoader.item ? settingsHubLoader.item.active : false
});
}
function toggle() {
root.toggleLazyWindow(settingsHubLoader, "openSettings", "closeSettings", item => {
return item.visible && item.active;
});
}
target: "settings"
}
IpcHandler {
function lock(): bool {
StateManager.lockScreen();
return true;
}
function retryFace(): bool {
IdleDimService.retryFaceAfterWake();
return true;
}
function show(): bool {
StateManager.lockScreen();
return true;
}
function status(): string {
return JSON.stringify({
"active": lockscreenLoader.active,
"loading": lockscreenLoader.loading,
"locked": StateManager.sessionLocked
});
}
// Toggle intentionally never unlocks an active session. Unlocking is
// only possible through the PAM flow inside the lock surface.
function toggle(): bool {
StateManager.lockScreen();
return true;
}
target: "lockscreen"
}
IpcHandler {
function screenshot() {
CaptureService.screenshot();
}
function stopRecording() {
CaptureService.stopRecording();
}
function toggleRecording() {
CaptureService.toggleRecording();
}
target: "capture"
}
NotificationServer {
id: globalNotificationManager
actionsSupported: true
imageSupported: true
keepOnReload: false
persistenceSupported: true
onNotification: n => {
n.tracked = true;
NotificationHistory.add(n);
PopupSurfaceService.routeNotification(n);
if (!QuickSettingsService.effectiveDndActive)
LockscreenNotificationService.show(n);
if (n.transient && QuickSettingsService.effectiveDndActive) {
Qt.callLater(function () {
if (n && n.tracked)
n.expire();
});
}
}
}
Connections {
function onEffectiveDndActiveChanged() {
if (QuickSettingsService.effectiveDndActive)
LockscreenNotificationService.clear();
}
target: QuickSettingsService
}
}