mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
Merge pull request #4077
7faec48
History: add open folder button after CSV export (selsta)
This commit is contained in:
commit
faa4473b17
1 changed files with 12 additions and 5 deletions
|
@ -1765,18 +1765,25 @@ Rectangle {
|
||||||
var written = currentWallet.history.writeCSV(currentWallet.currentSubaddressAccount, dataDir);
|
var written = currentWallet.history.writeCSV(currentWallet.currentSubaddressAccount, dataDir);
|
||||||
|
|
||||||
if(written !== ""){
|
if(written !== ""){
|
||||||
informationPopup.title = qsTr("Success") + translationManager.emptyString;
|
confirmationDialog.title = qsTr("Success") + translationManager.emptyString;
|
||||||
var text = qsTr("CSV file written to: %1").arg(written) + "\n\n"
|
var text = qsTr("CSV file written to: %1").arg(written) + "\n\n"
|
||||||
text += qsTr("Tip: Use your favorite spreadsheet software to sort on blockheight.") + "\n\n" + translationManager.emptyString;
|
text += qsTr("Tip: Use your favorite spreadsheet software to sort on blockheight.") + "\n\n" + translationManager.emptyString;
|
||||||
informationPopup.text = text;
|
confirmationDialog.text = text;
|
||||||
informationPopup.icon = StandardIcon.Information;
|
confirmationDialog.icon = StandardIcon.Information;
|
||||||
|
confirmationDialog.cancelText = qsTr("Open folder") + translationManager.emptyString;
|
||||||
|
confirmationDialog.onAcceptedCallback = null;
|
||||||
|
confirmationDialog.onRejectedCallback = function() {
|
||||||
|
oshelper.openContainingFolder(written);
|
||||||
|
}
|
||||||
|
confirmationDialog.open();
|
||||||
} else {
|
} else {
|
||||||
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
||||||
informationPopup.text = qsTr("Error exporting transaction data.") + "\n\n" + translationManager.emptyString;
|
informationPopup.text = qsTr("Error exporting transaction data.") + "\n\n" + translationManager.emptyString;
|
||||||
informationPopup.icon = StandardIcon.Critical;
|
informationPopup.icon = StandardIcon.Critical;
|
||||||
}
|
|
||||||
informationPopup.onCloseCallback = null;
|
informationPopup.onCloseCallback = null;
|
||||||
informationPopup.open();
|
informationPopup.open();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
var _folder = 'file://' + appWindow.accountsDir;
|
var _folder = 'file://' + appWindow.accountsDir;
|
||||||
|
|
Loading…
Reference in a new issue