1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-03 20:32:07 -04:00

Fix global warnings

This commit is contained in:
purian23
2026-02-12 22:50:11 -05:00
committed by bbedward
parent 0772f6deb7
commit 00e6172a68
2 changed files with 11 additions and 4 deletions

View File

@@ -16,7 +16,8 @@ DankListView {
Component.onCompleted: {
Qt.callLater(() => {
listInitialized = true;
if (listView)
listView.listInitialized = true;
});
}
@@ -88,7 +89,8 @@ DankListView {
Component.onCompleted: {
Qt.callLater(() => {
__delegateInitialized = true;
if (delegateRoot)
delegateRoot.__delegateInitialized = true;
});
}
@@ -109,6 +111,8 @@ DankListView {
listView.isAnimatingExpansion = true;
} else {
Qt.callLater(() => {
if (!notificationCard || !listView)
return;
let anyAnimating = false;
for (let i = 0; i < listView.count; i++) {
const item = listView.itemAtIndex(i);

View File

@@ -37,7 +37,8 @@ Rectangle {
Component.onCompleted: {
Qt.callLater(() => {
__initialized = true;
if (root)
root.__initialized = true;
});
}
@@ -341,6 +342,7 @@ Rectangle {
model: notificationGroup?.notifications?.slice(0, 10) || []
delegate: Rectangle {
id: expandedDelegate
required property var modelData
required property int index
readonly property bool messageExpanded: NotificationService.expandedMessages[modelData?.notification?.id] || false
@@ -352,7 +354,8 @@ Rectangle {
Component.onCompleted: {
Qt.callLater(() => {
__delegateInitialized = true;
if (expandedDelegate)
expandedDelegate.__delegateInitialized = true;
});
}