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 --- pages/settings/SettingsLog.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pages') diff --git a/pages/settings/SettingsLog.qml b/pages/settings/SettingsLog.qml index eccd79b6..05101376 100644 --- a/pages/settings/SettingsLog.qml +++ b/pages/settings/SettingsLog.qml @@ -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 = "" } -- cgit v1.2.3