connect to db on startup
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user