add base update in new struct code

This commit is contained in:
2026-11-16 12:51:38 +03:00
parent eaa638f654
commit 6ecb57bc35
17 changed files with 334 additions and 96 deletions

View File

@@ -8,12 +8,10 @@ Button {
font.bold: true
property int packageCount: 0
property bool isChecking: false
property bool isUpdating: false
property bool isInstalling: false
property int status: 0
enabled: !root.isUpdating && !root.isChecking && !root.isInstalling && root.packageCount > 0
text: root.isUpdating ? "Обновление..." : root.isChecking ? "Проверка..." : root.packageCount > 0 ? "Обновить систему" : "✓ Всё обновлено"
enabled: status === ProcessManager.Status.Null && root.packageCount > 0
text: status === ProcessManager.Status.Updating ? "Обновление..." : status === ProcessManager.Status.Checking ? "Проверка..." : root.packageCount > 0 ? "Обновить систему" : "✓ Всё обновлено"
background: Rectangle {
radius: 1