BarService: to keep tracks of bar widgets and improve IPC behavior.

This commit is contained in:
LemmyCook
2025-09-17 10:19:55 -04:00
parent abd6a66297
commit 8af8bf2e2e
11 changed files with 209 additions and 40 deletions
+4 -2
View File
@@ -27,7 +27,8 @@ Item {
IpcHandler {
target: "notifications"
function toggleHistory() {
notificationHistoryPanel.toggle()
// Will attempt to open the panel next to the bar button if any.
notificationHistoryPanel.toggle(BarService.lookupWidget("NotificationHistory"))
}
function toggleDND() {
Settings.data.notifications.doNotDisturb = !Settings.data.notifications.doNotDisturb
@@ -118,7 +119,8 @@ Item {
IpcHandler {
target: "sidePanel"
function toggle() {
sidePanel.toggle()
// Will attempt to open the panel next to the bar button if any.
sidePanel.toggle(BarService.lookupWidget("SidePanelToggle"))
}
}