diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/NetworkStatusItem.qml | 2 | ||||
| -rw-r--r-- | components/RemoteNodeDialog.qml | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/components/NetworkStatusItem.qml b/components/NetworkStatusItem.qml index fefba1c1..48eeccc2 100644 --- a/components/NetworkStatusItem.qml +++ b/components/NetworkStatusItem.qml @@ -52,6 +52,8 @@ Rectangle { case Wallet.ConnectionStatus_Connected: if (!appWindow.daemonSynced) return qsTr("Synchronizing"); + if (persistentSettings.useRemoteNode && persistentSettings.allowRemoteNodeMining && appWindow.isMining) + return qsTr("Remote node") + " + " + qsTr("Mining"); if (persistentSettings.useRemoteNode) return qsTr("Remote node"); return appWindow.isMining ? qsTr("Connected") + " + " + qsTr("Mining"): qsTr("Connected"); diff --git a/components/RemoteNodeDialog.qml b/components/RemoteNodeDialog.qml index 30383d44..a940feef 100644 --- a/components/RemoteNodeDialog.qml +++ b/components/RemoteNodeDialog.qml @@ -42,6 +42,13 @@ MoneroComponents.Dialog { onActiveFocusChanged: activeFocus && remoteNodeAddress.forceActiveFocus() + function onOk() { + root.success = true; + root.close(); + } + + function onCancel() { root.close(); } + function add(callbackOnSuccess) { root.editMode = false; root.callbackOnSuccess = callbackOnSuccess; @@ -89,6 +96,11 @@ MoneroComponents.Dialog { daemonAddrLabelText: qsTr("Address") + translationManager.emptyString daemonPortLabelText: qsTr("Port") + translationManager.emptyString + + Keys.enabled: root.visible + Keys.onEnterPressed: root.onOk() + Keys.onReturnPressed: root.onOk() + Keys.onEscapePressed: root.onCancel() } RowLayout { @@ -116,6 +128,11 @@ MoneroComponents.Dialog { placeholderFontSize: 15 labelFontSize: 14 fontSize: 15 + + Keys.enabled: root.visible + Keys.onEnterPressed: root.onOk() + Keys.onReturnPressed: root.onOk() + Keys.onEscapePressed: root.onCancel() } } |
