add console impl close/open

This commit is contained in:
2026-11-14 13:19:42 +03:00
parent a371de94b8
commit 9cb13ba392
4 changed files with 54 additions and 56 deletions

View File

@@ -69,12 +69,32 @@ ApplicationWindow {
}
}
readonly property string consoleTitle: tabs.currentIndex === 0 ? "Консоль обновления" : tabs.currentIndex === 1 ? "Консоль установки" : "Консоль удаления"
Components.ConsoleBar {
title: consoleTitle
consoleOpen: consoleOpen
Item {
id: plug
implicitHeight: 20
}
Components.ConsolePanel {}
}
readonly property string consoleTitle: tabs.currentIndex === 0 ? "Консоль обновления" : tabs.currentIndex === 1 ? "Консоль установки" : "Консоль удаления"
readonly property string consoleStatus: "in develop"
// readonly property string consoleStatus: tabs.currentIndex === 0
// ? (UpdateManager.isUpdating ? "обновление..." : "")
// : tabBar.currentIndex === 1
// ? (UpdateManager.isInstalling ? "установка..." : "")
// : (UpdateManager.isRemoving ? "удаление..." : "")
Components.ConsoleBar {
id: consoleBar
title: root.consoleTitle
consoleOpen: root.consoleOpen
status: root.consoleStatus
onToggled: root.consoleOpen = !root.consoleOpen
}
Components.ConsolePanel {
id: consolePanel
anchors.bottom: consoleBar.top
consoleOpen: root.consoleOpen
status: root.consoleStatus
}
}