diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2018-07-17 18:14:28 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2018-07-17 18:14:28 -0500 |
| commit | 1107daab98ccf39a259bf1979c751e18cb92ee8b (patch) | |
| tree | b180ae6a5c1821a0b7893d61d32dbe7886ee043f /pages | |
| parent | 292c11ee06407774e3d0bcf5e51b6f0cf15ba27e (diff) | |
| parent | da93fc4a86cf5b930b62aedf58f06ab1dff22330 (diff) | |
| download | monzero-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.qml | 53 |
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"); + } + } |
