aboutsummaryrefslogtreecommitdiff
path: root/pages/settings
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 /pages/settings
parentd3b81cb6f8b9e79bc8bda675f556d5288916af56 (diff)
downloadmonzero-gui-32257c8fab83cab89811111284cdca8bf5e9dbac.tar.gz
monzero-gui-32257c8fab83cab89811111284cdca8bf5e9dbac.tar.xz
monzero-gui-32257c8fab83cab89811111284cdca8bf5e9dbac.zip
DaemonManager: implement async sendCommand
Diffstat (limited to 'pages/settings')
-rw-r--r--pages/settings/SettingsLog.qml6
1 files changed, 5 insertions, 1 deletions
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 = ""
}