Merge pull request #2398

32257c8 DaemonManager: implement async sendCommand (xiphon)
This commit is contained in:
luigi1111
2019-10-14 17:50:54 -05:00
4 changed files with 24 additions and 15 deletions

View File

@@ -216,7 +216,11 @@ Rectangle {
onAccepted: {
if(text.length > 0) {
consoleArea.logCommand(">>> " + text)
daemonManager.sendCommand(text, currentWallet.nettype);
daemonManager.sendCommandAsync(text.split(" "), currentWallet.nettype, function(result) {
if (!result) {
appWindow.showStatusMessage(qsTr("Failed to send command"), 3);
}
});
}
text = ""
}