From 4bc7cab8d8e3c121aef1c3aee9d741c417c9a50d Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 4 Nov 2022 02:12:54 +0100 Subject: [PATCH] fix: don't show whole db url (and credentials) --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 71639dc..d40e0eb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -169,6 +169,8 @@ fn main() { info!(target: "launcher", "Starting native GUI"); + let db_name = args.db.clone().split('/').last().unwrap_or("").to_string(); + eframe::run_native( // TODO replace this with a loop that ends so we can cleanly exit the background worker "dashboard", @@ -181,7 +183,7 @@ fn main() { Box::new( App::new( cc, - args.db, + db_name, args.interval as i64, view, width_tx,