diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index ddc6edc..b18cb1a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,10 +29,18 @@ fn main() -> Result<()> { let deck_name = deck::pp_from_path(&deck_path).unwrap_or_else(|| "Deck".to_string()); sync::run(&mut conn, &deck_path)?; + let deck_last_sync = util::time::seconds_since_unix_epoch()?; let mut term = gui::setup_terminal()?; - match gui::start(&conn, &mut term, &deck_name, args.hide_remaining) { + match gui::start( + &mut conn, + &mut term, + &deck_path, + &deck_name, + deck_last_sync, + args.hide_remaining, + ) { Ok(()) => (), Err(msg) => { // Show errors in TUI, otherwise they are hidden |