aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-07-17 18:14:28 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-07-17 18:14:28 -0500
commit1107daab98ccf39a259bf1979c751e18cb92ee8b (patch)
treeb180ae6a5c1821a0b7893d61d32dbe7886ee043f /pages
parent292c11ee06407774e3d0bcf5e51b6f0cf15ba27e (diff)
parentda93fc4a86cf5b930b62aedf58f06ab1dff22330 (diff)
downloadmonzero-gui-1107daab98ccf39a259bf1979c751e18cb92ee8b.tar.gz
monzero-gui-1107daab98ccf39a259bf1979c751e18cb92ee8b.tar.xz
monzero-gui-1107daab98ccf39a259bf1979c751e18cb92ee8b.zip
Merge pull request #1415
da93fc4 export/import key images (cryptochangements34)
Diffstat (limited to 'pages')
-rw-r--r--pages/Transfer.qml53
1 files changed, 53 insertions, 0 deletions
diff --git a/pages/Transfer.qml b/pages/Transfer.qml
index 0524385f..fe3c6c21 100644
--- a/pages/Transfer.qml
+++ b/pages/Transfer.qml
@@ -535,6 +535,30 @@ Rectangle {
submitTxDialog.open();
}
}
+
+ StandardButton {
+ id: exportKeyImagesButton
+ text: qsTr("Export key images") + translationManager.emptyString
+ small: true
+ visible: !appWindow.viewOnly
+ enabled: pageRoot.enabled
+ onClicked: {
+ console.log("Transfer: export key images clicked")
+ exportKeyImagesDialog.open();
+ }
+ }
+
+ StandardButton {
+ id: importKeyImagesButton
+ text: qsTr("Import key images") + translationManager.emptyString
+ small: true
+ visible: appWindow.viewOnly && walletManager.isDaemonLocal(appWindow.currentDaemonAddress)
+ enabled: pageRoot.enabled
+ onClicked: {
+ console.log("Transfer: import key images clicked")
+ importKeyImagesDialog.open();
+ }
+ }
}
}
@@ -626,6 +650,35 @@ Rectangle {
}
}
+
+ //ExportKeyImagesDialog
+ FileDialog {
+ id: exportKeyImagesDialog
+ selectMultiple: false
+ selectExisting: false
+ onAccepted: {
+ console.log(walletManager.urlToLocalPath(exportKeyImagesDialog.fileUrl))
+ currentWallet.exportKeyImages(walletManager.urlToLocalPath(exportKeyImagesDialog.fileUrl));
+ }
+ onRejected: {
+ console.log("Canceled");
+ }
+ }
+
+ //ImportKeyImagesDialog
+ FileDialog {
+ id: importKeyImagesDialog
+ selectMultiple: false
+ selectExisting: true
+ title: qsTr("Please choose a file") + translationManager.emptyString
+ onAccepted: {
+ console.log(walletManager.urlToLocalPath(importKeyImagesDialog.fileUrl))
+ currentWallet.importKeyImages(walletManager.urlToLocalPath(importKeyImagesDialog.fileUrl));
+ }
+ onRejected: {
+ console.log("Canceled");
+ }
+ }