connect to db on startup

This commit is contained in:
jfmonty2 committed 2022-12-02 22:59:13 -08:00
1 parent e423df8e51
commit 196510e9a2
7 files changed
+454 -15

No files matched your search

+4 -1
View File
@@ -13,7 +13,10 @@ mod storage;
fn main() {
let initial_state = state::AppState::new(state::SessionStatus::Locked, None);
let initial_state = match state::AppState::new(state::SessionStatus::Locked, None) {
Ok(state) => state,
Err(e) => {eprintln!("{}", e); return;}
};
tauri::Builder::default()
.manage(initial_state)