test notif plugin
This commit is contained in:
@@ -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()];
|
||||
}
|
||||
|
||||
@@ -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<var> 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
|
||||
|
||||
Reference in New Issue
Block a user