mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-12 16:52:10 -04:00
Fix global warnings
This commit is contained in:
@@ -16,7 +16,8 @@ DankListView {
|
|||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
Qt.callLater(() => {
|
Qt.callLater(() => {
|
||||||
listInitialized = true;
|
if (listView)
|
||||||
|
listView.listInitialized = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,7 +89,8 @@ DankListView {
|
|||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
Qt.callLater(() => {
|
Qt.callLater(() => {
|
||||||
__delegateInitialized = true;
|
if (delegateRoot)
|
||||||
|
delegateRoot.__delegateInitialized = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,6 +111,8 @@ DankListView {
|
|||||||
listView.isAnimatingExpansion = true;
|
listView.isAnimatingExpansion = true;
|
||||||
} else {
|
} else {
|
||||||
Qt.callLater(() => {
|
Qt.callLater(() => {
|
||||||
|
if (!notificationCard || !listView)
|
||||||
|
return;
|
||||||
let anyAnimating = false;
|
let anyAnimating = false;
|
||||||
for (let i = 0; i < listView.count; i++) {
|
for (let i = 0; i < listView.count; i++) {
|
||||||
const item = listView.itemAtIndex(i);
|
const item = listView.itemAtIndex(i);
|
||||||
|
|||||||
@@ -37,7 +37,8 @@ Rectangle {
|
|||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
Qt.callLater(() => {
|
Qt.callLater(() => {
|
||||||
__initialized = true;
|
if (root)
|
||||||
|
root.__initialized = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -341,6 +342,7 @@ Rectangle {
|
|||||||
model: notificationGroup?.notifications?.slice(0, 10) || []
|
model: notificationGroup?.notifications?.slice(0, 10) || []
|
||||||
|
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
|
id: expandedDelegate
|
||||||
required property var modelData
|
required property var modelData
|
||||||
required property int index
|
required property int index
|
||||||
readonly property bool messageExpanded: NotificationService.expandedMessages[modelData?.notification?.id] || false
|
readonly property bool messageExpanded: NotificationService.expandedMessages[modelData?.notification?.id] || false
|
||||||
@@ -352,7 +354,8 @@ Rectangle {
|
|||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
Qt.callLater(() => {
|
Qt.callLater(() => {
|
||||||
__delegateInitialized = true;
|
if (expandedDelegate)
|
||||||
|
expandedDelegate.__delegateInitialized = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user