diff --git a/Modules/Notifications/Sidebar/NotifDockList.qml b/Modules/Notifications/Sidebar/NotifDockList.qml index 44f1788..7cb4f81 100644 --- a/Modules/Notifications/Sidebar/NotifDockList.qml +++ b/Modules/Notifications/Sidebar/NotifDockList.qml @@ -13,7 +13,7 @@ LazyListView { required property Flickable container required property Props props - required property DrawerVisibilities visibilities + required property PersistentProperties visibilities anchors.left: parent?.left anchors.right: parent?.right @@ -107,7 +107,7 @@ LazyListView { triggeredOnStart: true onTriggered: { - const notifs = Notifs.notClosed.filter(n => n.appName === notif.modelData); + const notifs = NotifServer.notClosed.filter(n => n.appName === notif.modelData); if (notifs.length === 0) { stop(); return; @@ -131,9 +131,9 @@ LazyListView { model: ScriptModel { values: { const map = new Map(); - for (const n of Notifs.notClosed) + for (const n of NotifServer.notClosed) map.set(n.appName, null); - for (const n of Notifs.list) + for (const n of NotifServer.list) map.set(n.appName, null); return [...map.keys()]; } diff --git a/Modules/Notifications/Sidebar/NotifGroupList.qml b/Modules/Notifications/Sidebar/NotifGroupList.qml index 0c10849..a04c3d8 100644 --- a/Modules/Notifications/Sidebar/NotifGroupList.qml +++ b/Modules/Notifications/Sidebar/NotifGroupList.qml @@ -1,12 +1,13 @@ pragma ComponentBehavior: Bound +import Quickshell +import QtQuick +import QtQuick.Layouts +import ZShell.Components import qs.Components import qs.Config import qs.Modules import qs.Daemons -import Quickshell -import QtQuick -import QtQuick.Layouts LazyListView { id: root @@ -15,7 +16,7 @@ LazyListView { required property bool expanded required property list notifs required property Props props - required property DrawerVisibilities visibilities + required property PersistentProperties visibilities signal requestToggleExpand(expand: bool) @@ -37,7 +38,7 @@ LazyListView { id: notif required property int index - required property NotifData modelData + required property NotifServer.Notif modelData property int startY LazyListView.preferredHeight: modelData?.closed || LazyListView.removing ? 0 : notifInner.nonAnimHeight