From 32257c8fab83cab89811111284cdca8bf5e9dbac Mon Sep 17 00:00:00 2001 From: xiphon Date: Fri, 27 Sep 2019 10:56:42 +0000 Subject: DaemonManager: implement async sendCommand --- components/DaemonConsole.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'components') diff --git a/components/DaemonConsole.qml b/components/DaemonConsole.qml index 0138473b..20e14fe4 100644 --- a/components/DaemonConsole.qml +++ b/components/DaemonConsole.qml @@ -178,7 +178,11 @@ Window { onAccepted: { if(text.length > 0) { textArea.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 = "" } -- cgit v1.2.3