add base update in new struct code
This commit is contained in:
@@ -8,11 +8,9 @@ Item {
|
||||
id: root
|
||||
|
||||
property int packageCount: 0
|
||||
property bool isChecking: true
|
||||
property bool isUpdating: false
|
||||
property bool isInstalling: false
|
||||
property int status: 0
|
||||
property var packages: []
|
||||
signal updateRequested()
|
||||
signal update()
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
@@ -26,24 +24,21 @@ Item {
|
||||
anchors.fill: parent
|
||||
packages: root.packages
|
||||
packageCount: root.packageCount
|
||||
isChecking: root.isChecking
|
||||
status: root.status
|
||||
}
|
||||
|
||||
Components.PreLoader {
|
||||
visible: root.isChecking
|
||||
visible: root.status != ProcessManager.Status.Null
|
||||
anchors.fill: parent
|
||||
status: root.status
|
||||
}
|
||||
}
|
||||
|
||||
Buttons.UpdateBtn {
|
||||
Layout.fillWidth: true
|
||||
packageCount: root.packageCount
|
||||
isChecking: root.isChecking
|
||||
isUpdating: root.isUpdating
|
||||
isInstalling: root.isInstalling
|
||||
onClicked: root.updateRequested()
|
||||
status: root.status
|
||||
onClicked: root.update()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user