From ce6da93363fc05fd8d9557879ec9b9c2567a4a93 Mon Sep 17 00:00:00 2001 From: chatlanin Date: Sat, 14 Nov 2026 19:10:33 +0300 Subject: [PATCH] fix struct --- Main.qml | 4 +++- qml/components/Title.qml | 2 +- qml/components/pages/UpdatePg.qml | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Main.qml b/Main.qml index 953db51..600f1ee 100644 --- a/Main.qml +++ b/Main.qml @@ -38,8 +38,8 @@ ApplicationWindow { id: title Layout.maximumWidth: Number.POSITIVE_INFINITY Layout.alignment: Qt.AlignBottom - packageCount: UpdateManager.packageCount isChecking: UpdateManager.isChecking + packageCount: UpdateManager.packageCount } Buttons.SettingsBtn { @@ -63,6 +63,8 @@ ApplicationWindow { Pages.UpdatePg { id: pgUpdate + isChecking: UpdateManager.isChecking + packageCount: UpdateManager.packageCount } Pages.InstallPg { diff --git a/qml/components/Title.qml b/qml/components/Title.qml index 2b01e24..6c01373 100644 --- a/qml/components/Title.qml +++ b/qml/components/Title.qml @@ -6,8 +6,8 @@ ColumnLayout { Layout.fillWidth: true spacing: 4 - property bool isChecking: true property int packageCount: 0 + property bool isChecking: true RowLayout { spacing: 5 diff --git a/qml/components/pages/UpdatePg.qml b/qml/components/pages/UpdatePg.qml index 8cb130c..07840a8 100644 --- a/qml/components/pages/UpdatePg.qml +++ b/qml/components/pages/UpdatePg.qml @@ -6,6 +6,9 @@ import "../../components" as Components Item { id: root + property int packageCount: 0 + property bool isChecking: true + ColumnLayout { anchors.fill: parent spacing: 12 @@ -15,7 +18,7 @@ Item { Layout.fillHeight: true Components.PreLoader { - visible: UpdateManager.isChecking + visible: root.isChecking anchors.fill: parent } }