mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-22 10:44:46 +00:00
Transfer: print success / error for key images
This commit is contained in:
parent
3f48e3ef1c
commit
1ef9a5c2d7
1 changed files with 10 additions and 2 deletions
|
@ -1140,7 +1140,11 @@ Rectangle {
|
||||||
selectExisting: false
|
selectExisting: false
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
console.log(walletManager.urlToLocalPath(exportKeyImagesDialog.fileUrl))
|
console.log(walletManager.urlToLocalPath(exportKeyImagesDialog.fileUrl))
|
||||||
currentWallet.exportKeyImages(walletManager.urlToLocalPath(exportKeyImagesDialog.fileUrl), true);
|
if (currentWallet.exportKeyImages(walletManager.urlToLocalPath(exportKeyImagesDialog.fileUrl), true)) {
|
||||||
|
appWindow.showStatusMessage(qsTr("Key images successfully exported to file") + translationManager.emptyString, 3);
|
||||||
|
} else {
|
||||||
|
appWindow.showStatusMessage(currentWallet.errorString, 5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
onRejected: {
|
onRejected: {
|
||||||
console.log("Canceled");
|
console.log("Canceled");
|
||||||
|
@ -1155,7 +1159,11 @@ Rectangle {
|
||||||
title: qsTr("Please choose a file") + translationManager.emptyString
|
title: qsTr("Please choose a file") + translationManager.emptyString
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
console.log(walletManager.urlToLocalPath(importKeyImagesDialog.fileUrl))
|
console.log(walletManager.urlToLocalPath(importKeyImagesDialog.fileUrl))
|
||||||
currentWallet.importKeyImages(walletManager.urlToLocalPath(importKeyImagesDialog.fileUrl));
|
if (currentWallet.importKeyImages(walletManager.urlToLocalPath(importKeyImagesDialog.fileUrl))) {
|
||||||
|
appWindow.showStatusMessage(qsTr("Key images successfully imported to wallet") + translationManager.emptyString, 3);
|
||||||
|
} else {
|
||||||
|
appWindow.showStatusMessage(currentWallet.errorString, 5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
onRejected: {
|
onRejected: {
|
||||||
console.log("Canceled");
|
console.log("Canceled");
|
||||||
|
|
Loading…
Reference in a new issue