aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2019-09-27 10:56:42 +0000
committerxiphon <xiphon@protonmail.com>2019-10-07 10:39:30 +0000
commit32257c8fab83cab89811111284cdca8bf5e9dbac (patch)
tree73fc6c6320c727728c70ff973b8f19f900d027de /components
parentd3b81cb6f8b9e79bc8bda675f556d5288916af56 (diff)
downloadmonzero-gui-32257c8fab83cab89811111284cdca8bf5e9dbac.tar.gz
monzero-gui-32257c8fab83cab89811111284cdca8bf5e9dbac.tar.xz
monzero-gui-32257c8fab83cab89811111284cdca8bf5e9dbac.zip
DaemonManager: implement async sendCommand
Diffstat (limited to 'components')
-rw-r--r--components/DaemonConsole.qml6
1 files changed, 5 insertions, 1 deletions
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 = ""
}