aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-10-14 17:50:54 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-10-14 17:50:54 -0500
commit897d879dad7443550be832f62e199291487453de (patch)
tree5503f9ccb4444c92442a2a88716e11b02e10593a /components
parente6458b58ef34a74aa45d48d54ac7b659a2400c8c (diff)
parent32257c8fab83cab89811111284cdca8bf5e9dbac (diff)
downloadmonzero-gui-897d879dad7443550be832f62e199291487453de.tar.gz
monzero-gui-897d879dad7443550be832f62e199291487453de.tar.xz
monzero-gui-897d879dad7443550be832f62e199291487453de.zip
Merge pull request #2398
32257c8 DaemonManager: implement async sendCommand (xiphon)
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 = ""
}