From 5529a8cd57e8a46327e018d94f903ee8008b6a70 Mon Sep 17 00:00:00 2001 From: Michael Mallan Date: Fri, 3 Jan 2025 09:47:02 +0000 Subject: [PATCH] change transactions export default file name --- liana-gui/src/export.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/liana-gui/src/export.rs b/liana-gui/src/export.rs index 842d107d..9fa2a6d5 100644 --- a/liana-gui/src/export.rs +++ b/liana-gui/src/export.rs @@ -382,9 +382,11 @@ pub async fn export_subscription(mut state: State) -> (ExportProgress, State) { } pub async fn get_path() -> Option { + 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())