add console manager
This commit is contained in:
19
Main.qml
19
Main.qml
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user