add preloader in updatepg

This commit is contained in:
2026-11-14 18:23:03 +03:00
parent c9139f8c44
commit aa91503747
3 changed files with 37 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ qt_add_qml_module(apparchpack
qml/components/Title.qml
qml/components/Line.qml
qml/components/Tabs.qml
qml/components/PreLoader.qml
qml/components/SettingsMenu.qml
qml/components/pages/UpdatePg.qml
qml/components/pages/InstallPg.qml

View File

@@ -0,0 +1,30 @@
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import archpack
Item {
ColumnLayout {
anchors.centerIn: parent
spacing: 8
BusyIndicator {
running: UpdateManager.isChecking
Layout.alignment: Qt.AlignHCenter
implicitWidth: 24
implicitHeight: 24
palette.dark: Theme.color2
palette.text: Theme.color2
}
Text {
text: "проверка обновлений..."
font.pixelSize: 13
color: Theme.color2
Layout.alignment: Qt.AlignHCenter
}
}
}

View File

@@ -1,6 +1,7 @@
import QtQuick
import QtQuick.Layouts
import "../../buttons" as Buttons
import "../../components" as Components
Item {
id: root
@@ -12,6 +13,11 @@ Item {
Item {
Layout.fillWidth: true
Layout.fillHeight: true
Components.PreLoader {
visible: UpdateManager.isChecking
anchors.fill: parent
}
}
Buttons.UpdateBtn {