-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add automatic install/uninstall, PM initialize, blind uninstall
- Loading branch information
Showing
25 changed files
with
1,064 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/////// new menu for PackageManager initialize | ||
|
||
import QtQuick 1.1 | ||
import "utils.js" as Utils | ||
import com.victron.velib 1.0 | ||
|
||
MbPage { | ||
id: root | ||
title: pmRunning ? qsTr("Intialize Package Manager") : qsTr ("Package manager not running") | ||
property string settingsPrefix: "com.victronenergy.settings/Settings/PackageManager" | ||
property bool pmRunning: installStatus.valid | ||
|
||
property VBusItem editAction: VBusItem { bind: Utils.path(servicePrefix, "/GuiEditAction") } | ||
VBusItem { id: installStatus; bind: Utils.path(servicePrefix, "/InstallStatus") } | ||
property bool showInProgress: false | ||
|
||
onPmRunningChanged: { showInProgress = false } | ||
|
||
function sendInitialize () | ||
{ | ||
// provide local confirmation of action - takes PackageManager too long | ||
editAction.setValue ("INITIALIZE") | ||
showInProgress = true | ||
} | ||
|
||
model: VisualItemModel | ||
{ | ||
MbItemText | ||
{ | ||
id: info | ||
text: qsTr ("Initializing PackageManager will reset persistent storage\nto an empty state\nGit Hub user and branch info is lost") | ||
wrapMode: Text.WordWrap | ||
horizontalAlignment: Text.AlignHCenter | ||
} | ||
MbOK | ||
{ | ||
description: qsTr("Initialize") | ||
value: qsTr("Press to Initialize") | ||
onClicked: sendInitialize () | ||
writeAccessLevel: User.AccessInstaller | ||
visible: ! showInProgress | ||
} | ||
MbItemText | ||
{ | ||
id: initializingMessage | ||
text: qsTr ("... initializing and restarting") | ||
wrapMode: Text.WordWrap | ||
horizontalAlignment: Text.AlignHCenter | ||
visible: showInProgress | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.