aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2022-05-28 02:49:42 +0200
committerselsta <selsta@sent.at>2022-05-28 03:15:23 +0200
commit559106174ee2106953b5d12a65b1966e0a7776c8 (patch)
tree08dc64879ad5312f218bfc6b25c8c869f2517589 /pages
parent6e0b5e2be5b8bc3df2c85fbc39b7f36ee588c110 (diff)
downloadmonzero-gui-559106174ee2106953b5d12a65b1966e0a7776c8.tar.gz
monzero-gui-559106174ee2106953b5d12a65b1966e0a7776c8.tar.xz
monzero-gui-559106174ee2106953b5d12a65b1966e0a7776c8.zip
SettingsWallet: add scan transaction option
Diffstat (limited to 'pages')
-rw-r--r--pages/settings/SettingsWallet.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/pages/settings/SettingsWallet.qml b/pages/settings/SettingsWallet.qml
index 2e5468ab..0c1e80ea 100644
--- a/pages/settings/SettingsWallet.qml
+++ b/pages/settings/SettingsWallet.qml
@@ -128,6 +128,27 @@ Rectangle {
}
MoneroComponents.SettingsListItem {
+ enabled: leftPanel.progressBar.fillLevel == 100
+ iconText: FontAwesome.magnifyingGlass
+ description: qsTr("Use this feature if a transaction is missing in your wallet history. This will expose the transaction ID to the remote node, which can harm your privacy.") + translationManager.emptyString
+ title: qsTr("Scan transaction") + translationManager.emptyString
+
+ onClicked: {
+ inputDialog.labelText = qsTr("Enter a transaction ID:") + translationManager.emptyString;
+ inputDialog.onAcceptedCallback = function() {
+ var txid = inputDialog.inputText.trim();
+ if (currentWallet.scanTransactions([txid])) {
+ appWindow.showStatusMessage(qsTr("Transaction successfully scanned"), 3);
+ } else {
+ appWindow.showStatusMessage(qsTr("Failed to scan transaction") + ": " + currentWallet.errorString, 5);
+ }
+ }
+ inputDialog.onRejectedCallback = null;
+ inputDialog.open()
+ }
+ }
+
+ MoneroComponents.SettingsListItem {
iconText: FontAwesome.ellipsisH
description: qsTr("Change the password of your wallet.") + translationManager.emptyString
title: qsTr("Change wallet password") + translationManager.emptyString