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 } }