mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 04:45:00 +00:00
History: omit redundant 'Cancel' button in confirmation dialog
This commit is contained in:
parent
9689fff957
commit
9b5b241163
1 changed files with 8 additions and 7 deletions
|
@ -384,17 +384,18 @@ Rectangle {
|
||||||
var written = currentWallet.history.writeCSV(currentWallet.currentSubaddressAccount, dataDir);
|
var written = currentWallet.history.writeCSV(currentWallet.currentSubaddressAccount, dataDir);
|
||||||
|
|
||||||
if(written !== ""){
|
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"
|
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;
|
||||||
confirmationDialog.text = text;
|
informationPopup.text = text;
|
||||||
confirmationDialog.icon = StandardIcon.Information;
|
informationPopup.icon = StandardIcon.Information;
|
||||||
} else {
|
} else {
|
||||||
confirmationDialog.title = qsTr("Error") + translationManager.emptyString;
|
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
||||||
confirmationDialog.text = qsTr("Error exporting transaction data.") + "\n\n" + translationManager.emptyString;
|
informationPopup.text = qsTr("Error exporting transaction data.") + "\n\n" + translationManager.emptyString;
|
||||||
confirmationDialog.icon = StandardIcon.Critical;
|
informationPopup.icon = StandardIcon.Critical;
|
||||||
}
|
}
|
||||||
confirmationDialog.open()
|
informationPopup.onCloseCallback = null;
|
||||||
|
informationPopup.open();
|
||||||
}
|
}
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
var _folder = 'file://' + moneroAccountsDir;
|
var _folder = 'file://' + moneroAccountsDir;
|
||||||
|
|
Loading…
Reference in a new issue