add preloader in updatepg
This commit is contained in:
@@ -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
|
||||
|
||||
30
qml/components/PreLoader.qml
Normal file
30
qml/components/PreLoader.qml
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user