diff options
| author | xiphon <xiphon@protonmail.com> | 2019-09-27 10:56:42 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2019-10-07 10:39:30 +0000 |
| commit | 32257c8fab83cab89811111284cdca8bf5e9dbac (patch) | |
| tree | 73fc6c6320c727728c70ff973b8f19f900d027de /pages | |
| parent | d3b81cb6f8b9e79bc8bda675f556d5288916af56 (diff) | |
| download | monzero-gui-32257c8fab83cab89811111284cdca8bf5e9dbac.tar.gz monzero-gui-32257c8fab83cab89811111284cdca8bf5e9dbac.tar.xz monzero-gui-32257c8fab83cab89811111284cdca8bf5e9dbac.zip | |
DaemonManager: implement async sendCommand
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/settings/SettingsLog.qml | 6 |
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 = "" } |
