From 80b34c8c7c7a20f81034d7e9106ea544d10a3ca3 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 20 Mar 2026 01:04:03 +1100 Subject: [PATCH] feat: async lock --- modules/lock/Center.qml | 1 + modules/lock/Fetch.qml | 1 + modules/lock/NotifDock.qml | 1 + modules/lock/NotifGroup.qml | 3 +++ modules/lock/WeatherInfo.qml | 3 +++ 5 files changed, 9 insertions(+) diff --git a/modules/lock/Center.qml b/modules/lock/Center.qml index aa926acd..07b80d3b 100644 --- a/modules/lock/Center.qml +++ b/modules/lock/Center.qml @@ -54,6 +54,7 @@ ColumnLayout { } Loader { + asynchronous: true Layout.leftMargin: Appearance.spacing.small Layout.alignment: Qt.AlignVCenter diff --git a/modules/lock/Fetch.qml b/modules/lock/Fetch.qml index e96b1431..e3feb693 100644 --- a/modules/lock/Fetch.qml +++ b/modules/lock/Fetch.qml @@ -162,6 +162,7 @@ ColumnLayout { } component WrappedLoader: Loader { + asynchronous: true visible: active } diff --git a/modules/lock/NotifDock.qml b/modules/lock/NotifDock.qml index cce86cdf..9a4dde64 100644 --- a/modules/lock/NotifDock.qml +++ b/modules/lock/NotifDock.qml @@ -39,6 +39,7 @@ ColumnLayout { color: "transparent" Loader { + asynchronous: true anchors.centerIn: parent active: opacity > 0 opacity: Notifs.list.length > 0 && !Config.lock.hideNotifs ? 0 : 1 diff --git a/modules/lock/NotifGroup.qml b/modules/lock/NotifGroup.qml index 7fcb108e..2e8ca542 100644 --- a/modules/lock/NotifGroup.qml +++ b/modules/lock/NotifGroup.qml @@ -109,12 +109,14 @@ StyledRect { radius: Appearance.rounding.full Loader { + asynchronous: true anchors.centerIn: parent sourceComponent: root.image ? imageComp : root.appIcon ? appIconComp : materialIconComp } } Loader { + asynchronous: true anchors.right: parent.right anchors.bottom: parent.bottom active: root.appIcon && root.image @@ -270,6 +272,7 @@ StyledRect { } Loader { + asynchronous: true Layout.fillWidth: true opacity: root.expanded ? 1 : 0 diff --git a/modules/lock/WeatherInfo.qml b/modules/lock/WeatherInfo.qml index d6c25af2..e69a09df 100644 --- a/modules/lock/WeatherInfo.qml +++ b/modules/lock/WeatherInfo.qml @@ -19,6 +19,7 @@ ColumnLayout { spacing: Appearance.spacing.small Loader { + asynchronous: true Layout.topMargin: Appearance.padding.large * 2 Layout.bottomMargin: -Appearance.padding.large Layout.alignment: Qt.AlignHCenter @@ -71,6 +72,7 @@ ColumnLayout { } Loader { + asynchronous: true Layout.rightMargin: Appearance.padding.smaller active: root.width > 400 visible: active @@ -107,6 +109,7 @@ ColumnLayout { Loader { id: forecastLoader + asynchronous: true Layout.topMargin: Appearance.spacing.smaller Layout.bottomMargin: Appearance.padding.large * 2 Layout.fillWidth: true