start daemon automatically and detached

This commit is contained in:
Jaquee
2017-02-23 19:47:58 +01:00
parent c6688dc876
commit faacd3d6a1
11 changed files with 104 additions and 115 deletions

View File

@@ -96,7 +96,7 @@ Rectangle {
setTrackingLineText("-")
return
}
if (appWindow.currentWallet.connected == Wallet.ConnectionStatus_Disconnected) {
if (appWindow.currentWallet.connected() == Wallet.ConnectionStatus_Disconnected) {
setTrackingLineText(qsTr("WARNING: no connection to daemon"))
return
}

View File

@@ -171,23 +171,10 @@ Rectangle {
}
}
StandardButton {
visible: true
id: daemonConsolePopupButton
text: qsTr("Show log") + translationManager.emptyString
shadowReleasedColor: "#FF4304"
shadowPressedColor: "#B32D00"
releasedColor: "#FF6C3C"
pressedColor: "#FF4304"
onClicked: {
daemonConsolePopup.open();
}
}
StandardButton {
visible: true
id: daemonStatusButton
text: qsTr("Status") + translationManager.emptyString
text: qsTr("Show status") + translationManager.emptyString
shadowReleasedColor: "#FF4304"
shadowPressedColor: "#B32D00"
releasedColor: "#FF6C3C"
@@ -420,6 +407,7 @@ Rectangle {
console.log("Settings page loaded");
initSettings();
viewOnly = currentWallet.viewOnly;
daemonManager.running(persistentSettings.testnet)
}
// fires only once

View File

@@ -700,7 +700,7 @@ Rectangle {
}
pageRoot.enabled = false;
switch (currentWallet.connected) {
switch (currentWallet.connected()) {
case Wallet.ConnectionStatus_Disconnected:
statusText.text = qsTr("Wallet is not connected to daemon.") + "<br>" + root.startLinkText
break