diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2022-12-01 23:49:25 -0600 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2022-12-01 23:49:25 -0600 |
| commit | faa4473b17799fc92a20c4e082a2d4a0ea5a930f (patch) | |
| tree | 295c1f762c2a44b16be366e669d49c7427521e34 /pages | |
| parent | 9924dfe8af2f6aa1a2f2db0230f5cb85df8e104e (diff) | |
| parent | 7faec48c0a0a404fe66af3f211fd34555b647716 (diff) | |
| download | monzero-gui-faa4473b17799fc92a20c4e082a2d4a0ea5a930f.tar.gz monzero-gui-faa4473b17799fc92a20c4e082a2d4a0ea5a930f.tar.xz monzero-gui-faa4473b17799fc92a20c4e082a2d4a0ea5a930f.zip | |
Merge pull request #4077
7faec48 History: add open folder button after CSV export (selsta)
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/History.qml | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/pages/History.qml b/pages/History.qml index 48befeaa..88a2b767 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -1765,18 +1765,25 @@ Rectangle { var written = currentWallet.history.writeCSV(currentWallet.currentSubaddressAccount, dataDir); 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" text += qsTr("Tip: Use your favorite spreadsheet software to sort on blockheight.") + "\n\n" + translationManager.emptyString; - informationPopup.text = text; - informationPopup.icon = StandardIcon.Information; + confirmationDialog.text = text; + confirmationDialog.icon = StandardIcon.Information; + confirmationDialog.cancelText = qsTr("Open folder") + translationManager.emptyString; + confirmationDialog.onAcceptedCallback = null; + confirmationDialog.onRejectedCallback = function() { + oshelper.openContainingFolder(written); + } + confirmationDialog.open(); } else { informationPopup.title = qsTr("Error") + translationManager.emptyString; informationPopup.text = qsTr("Error exporting transaction data.") + "\n\n" + translationManager.emptyString; informationPopup.icon = StandardIcon.Critical; + informationPopup.onCloseCallback = null; + informationPopup.open(); + } - informationPopup.onCloseCallback = null; - informationPopup.open(); } Component.onCompleted: { var _folder = 'file://' + appWindow.accountsDir; |
