From 344ec92cc5bc146b8b30a76fedc2f444348f366d Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 20 Mar 2026 01:24:20 +1100 Subject: [PATCH] feat: async notifs and osd --- modules/notifications/Notification.qml | 4 ++++ modules/osd/Content.qml | 1 + 2 files changed, 5 insertions(+) diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index c8efa8d7..1208f025 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -109,6 +109,7 @@ StyledRect { Loader { id: image + asynchronous: true active: root.hasImage anchors.left: parent.left @@ -137,6 +138,7 @@ StyledRect { Loader { id: appIcon + asynchronous: true active: root.hasAppIcon || !root.hasImage anchors.horizontalCenter: root.hasImage ? undefined : image.horizontalCenter @@ -153,6 +155,7 @@ StyledRect { Loader { id: icon + asynchronous: true active: root.hasAppIcon anchors.centerIn: parent @@ -169,6 +172,7 @@ StyledRect { } Loader { + asynchronous: true active: !root.hasAppIcon anchors.centerIn: parent anchors.horizontalCenterOffset: -Appearance.font.size.large * 0.02 diff --git a/modules/osd/Content.qml b/modules/osd/Content.qml index 770fb696..6776bb8f 100644 --- a/modules/osd/Content.qml +++ b/modules/osd/Content.qml @@ -109,6 +109,7 @@ Item { component WrappedLoader: Loader { required property bool shouldBeActive + asynchronous: true Layout.preferredHeight: shouldBeActive ? Config.osd.sizes.sliderHeight : 0 opacity: shouldBeActive ? 1 : 0 active: opacity > 0