change transactions export default file name

This commit is contained in:
Michael Mallan 2025-01-03 09:47:02 +00:00
parent 2e7fe80613
commit 5529a8cd57
No known key found for this signature in database
GPG Key ID: 5177CDCEDB0EABEB

View File

@ -382,9 +382,11 @@ pub async fn export_subscription(mut state: State) -> (ExportProgress, State) {
}
pub async fn get_path() -> Option<PathBuf> {
let date = chrono::Local::now().format("%Y-%m-%dT%H-%M-%S");
let file_name = format!("liana-txs-{date}.csv");
rfd::AsyncFileDialog::new()
.set_title("Choose a location to export...")
.set_file_name("liana.csv")
.set_file_name(file_name)
.save_file()
.await
.map(|fh| fh.path().to_path_buf())