add console manager

This commit is contained in:
2026-11-17 11:54:56 +03:00
parent 27ac2a60ba
commit 1c582bf263
9 changed files with 135 additions and 63 deletions

View File

@@ -29,7 +29,7 @@ ApplicationWindow {
id: mainLayout
anchors.fill: parent
anchors.margins: Theme.baseMargins
// anchors.bottomMargin: Theme.baseMargins + consoleBar.height
anchors.bottomMargin: Theme.baseMargins + consoleBar.height
spacing: Theme.baseSpacing
RowLayout {
@@ -116,21 +116,4 @@ ApplicationWindow {
ProcessManager.update();
}
}
function requestPrivileged(action, packageName) {
if (root.sessionPassword !== "") {
root.runPrivileged(action, packageName)
return
}
passwordDialog.action = action
passwordDialog.packageName = packageName
passwordDialog.open()
}
function runPrivileged(action, packageName) {
if (action == "update") ProcessManager.update()
// else if (action === "install") UpdateManager.installPackage(packageName, password)
// else UpdateManager.removePackage(packageName, password)
}
}