change transactions export default file name
This commit is contained in:
parent
2e7fe80613
commit
5529a8cd57
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user