connect to db on startup

This commit is contained in:
2022-12-02 22:59:13 -08:00
parent e423df8e51
commit 196510e9a2
7 changed files with 454 additions and 15 deletions

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)