mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 11:22:05 +02:00
Merge pull request #1921
9b5b241
History: omit redundant 'Cancel' button in confirmation dialog (xiphon)
This commit is contained in:
commit
0ac4c8c07d
@ -384,17 +384,18 @@ Rectangle {
|
||||
var written = currentWallet.history.writeCSV(currentWallet.currentSubaddressAccount, dataDir);
|
||||
|
||||
if(written !== ""){
|
||||
confirmationDialog.title = qsTr("Success") + translationManager.emptyString;
|
||||
informationPopup.title = qsTr("Success") + translationManager.emptyString;
|
||||
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;
|
||||
confirmationDialog.text = text;
|
||||
confirmationDialog.icon = StandardIcon.Information;
|
||||
informationPopup.text = text;
|
||||
informationPopup.icon = StandardIcon.Information;
|
||||
} else {
|
||||
confirmationDialog.title = qsTr("Error") + translationManager.emptyString;
|
||||
confirmationDialog.text = qsTr("Error exporting transaction data.") + "\n\n" + translationManager.emptyString;
|
||||
confirmationDialog.icon = StandardIcon.Critical;
|
||||
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
||||
informationPopup.text = qsTr("Error exporting transaction data.") + "\n\n" + translationManager.emptyString;
|
||||
informationPopup.icon = StandardIcon.Critical;
|
||||
}
|
||||
confirmationDialog.open()
|
||||
informationPopup.onCloseCallback = null;
|
||||
informationPopup.open();
|
||||
}
|
||||
Component.onCompleted: {
|
||||
var _folder = 'file://' + moneroAccountsDir;
|
||||
|
Loading…
Reference in New Issue
Block a user