From 4f7f21a86dea0cd8c12b9b748ea19d95aefa43b8 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 16 Jan 2026 01:40:38 +1100 Subject: internal: no async loaders Fixes reload issue and all stuff not loading issues --- modules/bar/components/Clock.qml | 1 - modules/bar/components/StatusIcons.qml | 1 - modules/bar/components/workspaces/SpecialWorkspaces.qml | 3 --- modules/bar/components/workspaces/Workspace.qml | 1 - modules/bar/components/workspaces/Workspaces.qml | 3 --- modules/bar/popouts/Battery.qml | 1 - modules/bar/popouts/Bluetooth.qml | 1 - modules/bar/popouts/TrayMenu.qml | 4 ---- modules/bar/popouts/Wrapper.qml | 4 ---- 9 files changed, 19 deletions(-) (limited to 'modules/bar') diff --git a/modules/bar/components/Clock.qml b/modules/bar/components/Clock.qml index be29c0b..801e93d 100644 --- a/modules/bar/components/Clock.qml +++ b/modules/bar/components/Clock.qml @@ -17,7 +17,6 @@ Column { active: Config.bar.clock.showIcon visible: active - asynchronous: true sourceComponent: MaterialIcon { text: "calendar_month" diff --git a/modules/bar/components/StatusIcons.qml b/modules/bar/components/StatusIcons.qml index 2f52596..74e6d00 100644 --- a/modules/bar/components/StatusIcons.qml +++ b/modules/bar/components/StatusIcons.qml @@ -265,7 +265,6 @@ StyledRect { required property string name Layout.alignment: Qt.AlignHCenter - asynchronous: true visible: active } } diff --git a/modules/bar/components/workspaces/SpecialWorkspaces.qml b/modules/bar/components/workspaces/SpecialWorkspaces.qml index ff2652e..866022a 100644 --- a/modules/bar/components/workspaces/SpecialWorkspaces.qml +++ b/modules/bar/components/workspaces/SpecialWorkspaces.qml @@ -167,7 +167,6 @@ Item { Layout.alignment: Qt.AlignHCenter | Qt.AlignTop Layout.preferredHeight: Config.bar.sizes.innerWidth - Appearance.padding.small * 2 - asynchronous: true sourceComponent: ws.icon.length === 1 ? letterComp : iconComp Component { @@ -199,7 +198,6 @@ Item { visible: active active: ws.hasWindows - asynchronous: true sourceComponent: Column { spacing: 0 @@ -292,7 +290,6 @@ Item { Loader { active: Config.bar.workspaces.activeIndicator - asynchronous: true anchors.fill: parent sourceComponent: Item { diff --git a/modules/bar/components/workspaces/Workspace.qml b/modules/bar/components/workspaces/Workspace.qml index d9d103d..3c8238b 100644 --- a/modules/bar/components/workspaces/Workspace.qml +++ b/modules/bar/components/workspaces/Workspace.qml @@ -61,7 +61,6 @@ ColumnLayout { visible: active active: root.hasWindows - asynchronous: true sourceComponent: Column { spacing: 0 diff --git a/modules/bar/components/workspaces/Workspaces.qml b/modules/bar/components/workspaces/Workspaces.qml index b146aae..ad20ab6 100644 --- a/modules/bar/components/workspaces/Workspaces.qml +++ b/modules/bar/components/workspaces/Workspaces.qml @@ -44,7 +44,6 @@ StyledClippingRect { Loader { active: Config.bar.workspaces.occupiedBg - asynchronous: true anchors.fill: parent anchors.margins: Appearance.padding.small @@ -78,7 +77,6 @@ StyledClippingRect { Loader { anchors.horizontalCenter: parent.horizontalCenter active: Config.bar.workspaces.activeIndicator - asynchronous: true sourceComponent: ActiveIndicator { activeWsId: root.activeWsId @@ -114,7 +112,6 @@ StyledClippingRect { anchors.margins: Appearance.padding.small active: opacity > 0 - asynchronous: true scale: root.onSpecial ? 1 : 0.5 opacity: root.onSpecial ? 1 : 0 diff --git a/modules/bar/popouts/Battery.qml b/modules/bar/popouts/Battery.qml index 35d32c5..ac975e1 100644 --- a/modules/bar/popouts/Battery.qml +++ b/modules/bar/popouts/Battery.qml @@ -40,7 +40,6 @@ Column { anchors.horizontalCenter: parent.horizontalCenter active: PowerProfiles.degradationReason !== PerformanceDegradationReason.None - asynchronous: true height: active ? (item?.implicitHeight ?? 0) : 0 diff --git a/modules/bar/popouts/Bluetooth.qml b/modules/bar/popouts/Bluetooth.qml index 91ac560..676da82 100644 --- a/modules/bar/popouts/Bluetooth.qml +++ b/modules/bar/popouts/Bluetooth.qml @@ -142,7 +142,6 @@ ColumnLayout { } Loader { - asynchronous: true active: device.modelData.bonded sourceComponent: Item { implicitWidth: connectBtn.implicitWidth diff --git a/modules/bar/popouts/TrayMenu.qml b/modules/bar/popouts/TrayMenu.qml index c87c0e1..9b743db 100644 --- a/modules/bar/popouts/TrayMenu.qml +++ b/modules/bar/popouts/TrayMenu.qml @@ -85,7 +85,6 @@ StackView { anchors.right: parent.right active: !item.modelData.isSeparator - asynchronous: true sourceComponent: Item { implicitHeight: label.implicitHeight @@ -118,7 +117,6 @@ StackView { anchors.left: parent.left active: item.modelData.icon !== "" - asynchronous: true sourceComponent: IconImage { implicitSize: label.implicitHeight @@ -155,7 +153,6 @@ StackView { anchors.right: parent.right active: item.modelData.hasChildren - asynchronous: true sourceComponent: MaterialIcon { text: "chevron_right" @@ -169,7 +166,6 @@ StackView { Loader { active: menu.isSubMenu - asynchronous: true sourceComponent: Item { implicitWidth: back.implicitWidth diff --git a/modules/bar/popouts/Wrapper.qml b/modules/bar/popouts/Wrapper.qml index 5ef4f9d..64ee6db 100644 --- a/modules/bar/popouts/Wrapper.qml +++ b/modules/bar/popouts/Wrapper.qml @@ -101,7 +101,6 @@ Item { id: content shouldBeActive: root.hasCurrent && !root.detachedMode - asynchronous: true anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter @@ -112,7 +111,6 @@ Item { Comp { shouldBeActive: root.detachedMode === "winfo" - asynchronous: true anchors.centerIn: parent sourceComponent: WindowInfo { @@ -123,7 +121,6 @@ Item { Comp { shouldBeActive: root.detachedMode === "any" - asynchronous: true anchors.centerIn: parent sourceComponent: ControlCenter { @@ -173,7 +170,6 @@ Item { property bool shouldBeActive - asynchronous: true active: false opacity: 0 -- cgit v1.2.3-freya