internal: no async loaders

Fixes reload issue and all stuff not loading issues
This commit is contained in:
2 * r + 2 * t 2026-01-16 01:40:38 +11:00
parent 44e8d811c1
commit 4f7f21a86d
42 changed files with 0 additions and 70 deletions

View file

@ -74,7 +74,6 @@ StyledRect {
} }
Loader { Loader {
asynchronous: true
active: !!root.label active: !!root.label
visible: active visible: active
@ -103,7 +102,6 @@ StyledRect {
Loader { Loader {
id: tooltipLoader id: tooltipLoader
active: root.tooltip !== "" active: root.tooltip !== ""
asynchronous: true
z: 10000 z: 10000
width: 0 width: 0
height: 0 height: 0

View file

@ -51,7 +51,6 @@ Item {
opacity: view.count === 0 ? 1 : 0 opacity: view.count === 0 ? 1 : 0
active: opacity > 0 active: opacity > 0
asynchronous: true
sourceComponent: ColumnLayout { sourceComponent: ColumnLayout {
MaterialIcon { MaterialIcon {

View file

@ -77,7 +77,6 @@ StyledRect {
Loader { Loader {
Layout.rightMargin: Appearance.spacing.small Layout.rightMargin: Appearance.spacing.small
active: folder.index > 0 active: folder.index > 0
asynchronous: true
sourceComponent: StyledText { sourceComponent: StyledText {
text: "/" text: "/"
color: Colours.palette.m3onSurfaceVariant color: Colours.palette.m3onSurfaceVariant
@ -92,7 +91,6 @@ StyledRect {
Loader { Loader {
anchors.fill: parent anchors.fill: parent
active: folder.index < root.dialog.cwd.length - 1 active: folder.index < root.dialog.cwd.length - 1
asynchronous: true
sourceComponent: StateLayer { sourceComponent: StateLayer {
radius: Appearance.rounding.small radius: Appearance.rounding.small
@ -110,7 +108,6 @@ StyledRect {
anchors.leftMargin: Appearance.padding.normal anchors.leftMargin: Appearance.padding.normal
active: folder.index === 0 && folder.modelData === "Home" active: folder.index === 0 && folder.modelData === "Home"
asynchronous: true
sourceComponent: MaterialIcon { sourceComponent: MaterialIcon {
text: "home" text: "home"
color: root.dialog.cwd.length === 1 ? Colours.palette.m3onSurface : Colours.palette.m3onSurfaceVariant color: root.dialog.cwd.length === 1 ? Colours.palette.m3onSurface : Colours.palette.m3onSurfaceVariant

View file

@ -197,7 +197,6 @@ MouseArea {
anchors.fill: parent anchors.fill: parent
active: root.loader.freeze active: root.loader.freeze
asynchronous: true
sourceComponent: ScreencopyView { sourceComponent: ScreencopyView {
captureSource: root.screen captureSource: root.screen

View file

@ -46,7 +46,6 @@ Loader {
anchors.margins: Appearance.padding.large anchors.margins: Appearance.padding.large
active: Config.background.desktopClock.enabled active: Config.background.desktopClock.enabled
asynchronous: true
source: "DesktopClock.qml" source: "DesktopClock.qml"
} }

View file

@ -34,7 +34,6 @@ Item {
anchors.fill: parent anchors.fill: parent
active: !root.source active: !root.source
asynchronous: true
sourceComponent: StyledRect { sourceComponent: StyledRect {
color: Colours.palette.m3surfaceContainer color: Colours.palette.m3surfaceContainer

View file

@ -17,7 +17,6 @@ Column {
active: Config.bar.clock.showIcon active: Config.bar.clock.showIcon
visible: active visible: active
asynchronous: true
sourceComponent: MaterialIcon { sourceComponent: MaterialIcon {
text: "calendar_month" text: "calendar_month"

View file

@ -265,7 +265,6 @@ StyledRect {
required property string name required property string name
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
asynchronous: true
visible: active visible: active
} }
} }

View file

@ -167,7 +167,6 @@ Item {
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
Layout.preferredHeight: Config.bar.sizes.innerWidth - Appearance.padding.small * 2 Layout.preferredHeight: Config.bar.sizes.innerWidth - Appearance.padding.small * 2
asynchronous: true
sourceComponent: ws.icon.length === 1 ? letterComp : iconComp sourceComponent: ws.icon.length === 1 ? letterComp : iconComp
Component { Component {
@ -199,7 +198,6 @@ Item {
visible: active visible: active
active: ws.hasWindows active: ws.hasWindows
asynchronous: true
sourceComponent: Column { sourceComponent: Column {
spacing: 0 spacing: 0
@ -292,7 +290,6 @@ Item {
Loader { Loader {
active: Config.bar.workspaces.activeIndicator active: Config.bar.workspaces.activeIndicator
asynchronous: true
anchors.fill: parent anchors.fill: parent
sourceComponent: Item { sourceComponent: Item {

View file

@ -61,7 +61,6 @@ ColumnLayout {
visible: active visible: active
active: root.hasWindows active: root.hasWindows
asynchronous: true
sourceComponent: Column { sourceComponent: Column {
spacing: 0 spacing: 0

View file

@ -44,7 +44,6 @@ StyledClippingRect {
Loader { Loader {
active: Config.bar.workspaces.occupiedBg active: Config.bar.workspaces.occupiedBg
asynchronous: true
anchors.fill: parent anchors.fill: parent
anchors.margins: Appearance.padding.small anchors.margins: Appearance.padding.small
@ -78,7 +77,6 @@ StyledClippingRect {
Loader { Loader {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
active: Config.bar.workspaces.activeIndicator active: Config.bar.workspaces.activeIndicator
asynchronous: true
sourceComponent: ActiveIndicator { sourceComponent: ActiveIndicator {
activeWsId: root.activeWsId activeWsId: root.activeWsId
@ -114,7 +112,6 @@ StyledClippingRect {
anchors.margins: Appearance.padding.small anchors.margins: Appearance.padding.small
active: opacity > 0 active: opacity > 0
asynchronous: true
scale: root.onSpecial ? 1 : 0.5 scale: root.onSpecial ? 1 : 0.5
opacity: root.onSpecial ? 1 : 0 opacity: root.onSpecial ? 1 : 0

View file

@ -40,7 +40,6 @@ Column {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
active: PowerProfiles.degradationReason !== PerformanceDegradationReason.None active: PowerProfiles.degradationReason !== PerformanceDegradationReason.None
asynchronous: true
height: active ? (item?.implicitHeight ?? 0) : 0 height: active ? (item?.implicitHeight ?? 0) : 0

View file

@ -142,7 +142,6 @@ ColumnLayout {
} }
Loader { Loader {
asynchronous: true
active: device.modelData.bonded active: device.modelData.bonded
sourceComponent: Item { sourceComponent: Item {
implicitWidth: connectBtn.implicitWidth implicitWidth: connectBtn.implicitWidth

View file

@ -85,7 +85,6 @@ StackView {
anchors.right: parent.right anchors.right: parent.right
active: !item.modelData.isSeparator active: !item.modelData.isSeparator
asynchronous: true
sourceComponent: Item { sourceComponent: Item {
implicitHeight: label.implicitHeight implicitHeight: label.implicitHeight
@ -118,7 +117,6 @@ StackView {
anchors.left: parent.left anchors.left: parent.left
active: item.modelData.icon !== "" active: item.modelData.icon !== ""
asynchronous: true
sourceComponent: IconImage { sourceComponent: IconImage {
implicitSize: label.implicitHeight implicitSize: label.implicitHeight
@ -155,7 +153,6 @@ StackView {
anchors.right: parent.right anchors.right: parent.right
active: item.modelData.hasChildren active: item.modelData.hasChildren
asynchronous: true
sourceComponent: MaterialIcon { sourceComponent: MaterialIcon {
text: "chevron_right" text: "chevron_right"
@ -169,7 +166,6 @@ StackView {
Loader { Loader {
active: menu.isSubMenu active: menu.isSubMenu
asynchronous: true
sourceComponent: Item { sourceComponent: Item {
implicitWidth: back.implicitWidth implicitWidth: back.implicitWidth

View file

@ -101,7 +101,6 @@ Item {
id: content id: content
shouldBeActive: root.hasCurrent && !root.detachedMode shouldBeActive: root.hasCurrent && !root.detachedMode
asynchronous: true
anchors.right: parent.right anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@ -112,7 +111,6 @@ Item {
Comp { Comp {
shouldBeActive: root.detachedMode === "winfo" shouldBeActive: root.detachedMode === "winfo"
asynchronous: true
anchors.centerIn: parent anchors.centerIn: parent
sourceComponent: WindowInfo { sourceComponent: WindowInfo {
@ -123,7 +121,6 @@ Item {
Comp { Comp {
shouldBeActive: root.detachedMode === "any" shouldBeActive: root.detachedMode === "any"
asynchronous: true
anchors.centerIn: parent anchors.centerIn: parent
sourceComponent: ControlCenter { sourceComponent: ControlCenter {
@ -173,7 +170,6 @@ Item {
property bool shouldBeActive property bool shouldBeActive
asynchronous: true
active: false active: false
opacity: 0 opacity: 0

View file

@ -42,7 +42,6 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
Layout.columnSpan: 2 Layout.columnSpan: 2
asynchronous: true
active: root.floating active: root.floating
visible: active visible: active

View file

@ -43,7 +43,6 @@ Item {
Loader { Loader {
Layout.topMargin: Appearance.spacing.large Layout.topMargin: Appearance.spacing.large
asynchronous: true
active: !root.session.floating active: !root.session.floating
visible: active visible: active

View file

@ -129,7 +129,6 @@ ClippingRectangle {
anchors.fill: parent anchors.fill: parent
clip: false clip: false
asynchronous: true
active: false active: false
Component.onCompleted: { Component.onCompleted: {

View file

@ -103,7 +103,6 @@ Item {
Layout.fillHeight: true Layout.fillHeight: true
Layout.bottomMargin: -Appearance.padding.large * 2 Layout.bottomMargin: -Appearance.padding.large * 2
asynchronous: true
active: { active: {
const isActive = root.session.activeIndex === 3; const isActive = root.session.activeIndex === 3;
const isAdjacent = Math.abs(root.session.activeIndex - 3) === 1; const isAdjacent = Math.abs(root.session.activeIndex - 3) === 1;

View file

@ -129,7 +129,6 @@ CollapsibleSection {
Loader { Loader {
active: isCurrent active: isCurrent
asynchronous: true
sourceComponent: MaterialIcon { sourceComponent: MaterialIcon {
text: "check" text: "check"

View file

@ -29,7 +29,6 @@ CollapsibleSection {
id: materialFontLoader id: materialFontLoader
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: item ? Math.min(item.contentHeight, 300) : 0 Layout.preferredHeight: item ? Math.min(item.contentHeight, 300) : 0
asynchronous: true
active: materialFontSection.expanded active: materialFontSection.expanded
sourceComponent: StyledListView { sourceComponent: StyledListView {
@ -84,7 +83,6 @@ CollapsibleSection {
Loader { Loader {
active: isCurrent active: isCurrent
asynchronous: true
sourceComponent: MaterialIcon { sourceComponent: MaterialIcon {
text: "check" text: "check"
@ -110,7 +108,6 @@ CollapsibleSection {
Loader { Loader {
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: item ? Math.min(item.contentHeight, 300) : 0 Layout.preferredHeight: item ? Math.min(item.contentHeight, 300) : 0
asynchronous: true
active: monoFontSection.expanded active: monoFontSection.expanded
sourceComponent: StyledListView { sourceComponent: StyledListView {
@ -165,7 +162,6 @@ CollapsibleSection {
Loader { Loader {
active: isCurrent active: isCurrent
asynchronous: true
sourceComponent: MaterialIcon { sourceComponent: MaterialIcon {
text: "check" text: "check"
@ -191,7 +187,6 @@ CollapsibleSection {
Loader { Loader {
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: item ? Math.min(item.contentHeight, 300) : 0 Layout.preferredHeight: item ? Math.min(item.contentHeight, 300) : 0
asynchronous: true
active: sansFontSection.expanded active: sansFontSection.expanded
sourceComponent: StyledListView { sourceComponent: StyledListView {
@ -246,7 +241,6 @@ CollapsibleSection {
Loader { Loader {
active: isCurrent active: isCurrent
asynchronous: true
sourceComponent: MaterialIcon { sourceComponent: MaterialIcon {
text: "check" text: "check"

View file

@ -49,7 +49,6 @@ RowLayout {
anchors.leftMargin: Appearance.padding.large anchors.leftMargin: Appearance.padding.large
anchors.rightMargin: Appearance.padding.large + Appearance.padding.normal / 2 anchors.rightMargin: Appearance.padding.large + Appearance.padding.normal / 2
asynchronous: true
sourceComponent: root.leftContent sourceComponent: root.leftContent
Component.onCompleted: { Component.onCompleted: {
@ -91,7 +90,6 @@ RowLayout {
anchors.fill: parent anchors.fill: parent
anchors.margins: Appearance.padding.large * 2 anchors.margins: Appearance.padding.large * 2
asynchronous: true
sourceComponent: root.rightContent sourceComponent: root.rightContent
Component.onCompleted: { Component.onCompleted: {

View file

@ -56,7 +56,6 @@ Item {
transformOrigin: Item.Center transformOrigin: Item.Center
clip: false clip: false
asynchronous: true
sourceComponent: rightPaneItem.targetComponent sourceComponent: rightPaneItem.targetComponent
} }

View file

@ -289,7 +289,6 @@ Item {
id: appsListLoader id: appsListLoader
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
asynchronous: true
active: true active: true
sourceComponent: StyledListView { sourceComponent: StyledListView {
@ -396,7 +395,6 @@ Item {
transformOrigin: Item.Center transformOrigin: Item.Center
clip: false clip: false
asynchronous: true
sourceComponent: rightLauncherPane.targetComponent sourceComponent: rightLauncherPane.targetComponent
active: true active: true

View file

@ -208,7 +208,6 @@ Item {
transformOrigin: Item.Center transformOrigin: Item.Center
clip: false clip: false
asynchronous: true
sourceComponent: rightPaneItem.targetComponent sourceComponent: rightPaneItem.targetComponent
} }

View file

@ -125,7 +125,6 @@ Item {
anchors.leftMargin: Appearance.padding.large anchors.leftMargin: Appearance.padding.large
anchors.rightMargin: Appearance.padding.large anchors.rightMargin: Appearance.padding.large
asynchronous: true
sourceComponent: taskbarContentComponent sourceComponent: taskbarContentComponent
} }
} }

View file

@ -52,7 +52,6 @@ Item {
Loader { Loader {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
asynchronous: true
active: Config.services.useTwelveHourClock active: Config.services.useTwelveHourClock
visible: active visible: active

View file

@ -93,7 +93,6 @@ Item {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
active: `${root.modelData?.name} ${root.modelData?.flavour}` === Schemes.currentScheme active: `${root.modelData?.name} ${root.modelData?.flavour}` === Schemes.currentScheme
asynchronous: true
sourceComponent: MaterialIcon { sourceComponent: MaterialIcon {
text: "check" text: "check"

View file

@ -69,7 +69,6 @@ Item {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
active: root.modelData?.variant === Schemes.currentVariant active: root.modelData?.variant === Schemes.currentVariant
asynchronous: true
sourceComponent: MaterialIcon { sourceComponent: MaterialIcon {
text: "check" text: "check"

View file

@ -58,7 +58,6 @@ ColumnLayout {
Layout.leftMargin: Appearance.spacing.small Layout.leftMargin: Appearance.spacing.small
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
asynchronous: true
active: Config.services.useTwelveHourClock active: Config.services.useTwelveHourClock
visible: active visible: active

View file

@ -143,7 +143,6 @@ ColumnLayout {
} }
component WrappedLoader: Loader { component WrappedLoader: Loader {
asynchronous: true
visible: active visible: active
} }

View file

@ -40,7 +40,6 @@ ColumnLayout {
Loader { Loader {
anchors.centerIn: parent anchors.centerIn: parent
asynchronous: true
active: opacity > 0 active: opacity > 0
opacity: Notifs.list.length > 0 ? 0 : 1 opacity: Notifs.list.length > 0 ? 0 : 1

View file

@ -87,7 +87,6 @@ StyledRect {
Loader { Loader {
anchors.centerIn: parent anchors.centerIn: parent
asynchronous: true
sourceComponent: root.image ? imageComp : root.appIcon ? appIconComp : materialIconComp sourceComponent: root.image ? imageComp : root.appIcon ? appIconComp : materialIconComp
} }
} }
@ -95,7 +94,6 @@ StyledRect {
Loader { Loader {
anchors.right: parent.right anchors.right: parent.right
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
asynchronous: true
active: root.appIcon && root.image active: root.appIcon && root.image
sourceComponent: StyledRect { sourceComponent: StyledRect {
@ -254,7 +252,6 @@ StyledRect {
opacity: root.expanded ? 1 : 0 opacity: root.expanded ? 1 : 0
Layout.preferredHeight: root.expanded ? implicitHeight : 0 Layout.preferredHeight: root.expanded ? implicitHeight : 0
active: opacity > 0 active: opacity > 0
asynchronous: true
sourceComponent: ColumnLayout { sourceComponent: ColumnLayout {
Repeater { Repeater {

View file

@ -23,7 +23,6 @@ ColumnLayout {
Layout.bottomMargin: -Appearance.padding.large Layout.bottomMargin: -Appearance.padding.large
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
asynchronous: true
active: root.rootHeight > 610 active: root.rootHeight > 610
visible: active visible: active
@ -73,7 +72,6 @@ ColumnLayout {
Loader { Loader {
Layout.rightMargin: Appearance.padding.smaller Layout.rightMargin: Appearance.padding.smaller
asynchronous: true
active: root.width > 400 active: root.width > 400
visible: active visible: active
@ -113,7 +111,6 @@ ColumnLayout {
Layout.bottomMargin: Appearance.padding.large * 2 Layout.bottomMargin: Appearance.padding.large * 2
Layout.fillWidth: true Layout.fillWidth: true
asynchronous: true
active: root.rootHeight > 820 active: root.rootHeight > 820
visible: active visible: active

View file

@ -108,7 +108,6 @@ StyledRect {
id: image id: image
active: root.hasImage active: root.hasImage
asynchronous: true
anchors.left: parent.left anchors.left: parent.left
anchors.top: parent.top anchors.top: parent.top
@ -135,7 +134,6 @@ StyledRect {
id: appIcon id: appIcon
active: root.hasAppIcon || !root.hasImage active: root.hasAppIcon || !root.hasImage
asynchronous: true
anchors.horizontalCenter: root.hasImage ? undefined : image.horizontalCenter anchors.horizontalCenter: root.hasImage ? undefined : image.horizontalCenter
anchors.verticalCenter: root.hasImage ? undefined : image.verticalCenter anchors.verticalCenter: root.hasImage ? undefined : image.verticalCenter
@ -152,7 +150,6 @@ StyledRect {
id: icon id: icon
active: root.hasAppIcon active: root.hasAppIcon
asynchronous: true
anchors.centerIn: parent anchors.centerIn: parent
@ -169,7 +166,6 @@ StyledRect {
Loader { Loader {
active: !root.hasAppIcon active: !root.hasAppIcon
asynchronous: true
anchors.centerIn: parent anchors.centerIn: parent
anchors.horizontalCenterOffset: -Appearance.font.size.large * 0.02 anchors.horizontalCenterOffset: -Appearance.font.size.large * 0.02
anchors.verticalCenterOffset: Appearance.font.size.large * 0.02 anchors.verticalCenterOffset: Appearance.font.size.large * 0.02

View file

@ -112,7 +112,6 @@ Item {
Layout.preferredHeight: shouldBeActive ? Config.osd.sizes.sliderHeight : 0 Layout.preferredHeight: shouldBeActive ? Config.osd.sizes.sliderHeight : 0
opacity: shouldBeActive ? 1 : 0 opacity: shouldBeActive ? 1 : 0
active: opacity > 0 active: opacity > 0
asynchronous: true
visible: active visible: active
Behavior on Layout.preferredHeight { Behavior on Layout.preferredHeight {

View file

@ -87,7 +87,6 @@ Item {
Loader { Loader {
anchors.centerIn: parent anchors.centerIn: parent
asynchronous: true
active: opacity > 0 active: opacity > 0
opacity: root.notifCount > 0 ? 0 : 1 opacity: root.notifCount > 0 ? 0 : 1

View file

@ -109,7 +109,6 @@ StyledRect {
Loader { Loader {
anchors.centerIn: parent anchors.centerIn: parent
asynchronous: true
sourceComponent: root.image ? imageComp : root.appIcon ? appIconComp : materialIconComp sourceComponent: root.image ? imageComp : root.appIcon ? appIconComp : materialIconComp
} }
} }
@ -117,7 +116,6 @@ StyledRect {
Loader { Loader {
anchors.right: parent.right anchors.right: parent.right
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
asynchronous: true
active: root.appIcon && root.image active: root.appIcon && root.image
sourceComponent: StyledRect { sourceComponent: StyledRect {

View file

@ -19,7 +19,6 @@ Loader {
opacity: root.props.recordingConfirmDelete ? 1 : 0 opacity: root.props.recordingConfirmDelete ? 1 : 0
active: opacity > 0 active: opacity > 0
asynchronous: true
sourceComponent: MouseArea { sourceComponent: MouseArea {
id: deleteConfirmation id: deleteConfirmation

View file

@ -167,7 +167,6 @@ ColumnLayout {
opacity: list.count === 0 ? 1 : 0 opacity: list.count === 0 ? 1 : 0
active: opacity > 0 active: opacity > 0
asynchronous: true
sourceComponent: ColumnLayout { sourceComponent: ColumnLayout {
spacing: Appearance.spacing.small spacing: Appearance.spacing.small

View file

@ -118,7 +118,6 @@ ColumnLayout {
Loader { Loader {
active: root.client?.lastIpcObject.floating active: root.client?.lastIpcObject.floating
asynchronous: true
Layout.fillWidth: active Layout.fillWidth: active
Layout.leftMargin: active ? 0 : -parent.spacing Layout.leftMargin: active ? 0 : -parent.spacing
Layout.rightMargin: active ? 0 : -parent.spacing Layout.rightMargin: active ? 0 : -parent.spacing

View file

@ -35,7 +35,6 @@ Item {
Loader { Loader {
anchors.centerIn: parent anchors.centerIn: parent
active: !root.client active: !root.client
asynchronous: true
sourceComponent: ColumnLayout { sourceComponent: ColumnLayout {
spacing: 0 spacing: 0