Update lib.rs for the DB sync of autostart

This commit is contained in:
Aden Lindsay
2024-12-30 16:29:41 +10:30
committed by GitHub
parent 86f2fb19bd
commit 085cd9481d

View File

@ -180,6 +180,11 @@ fn setup(handle: AppHandle) -> AppState<'static> {
drop(db_handle);
info!("finished setup!");
// Sync autostart state
if let Err(e) = autostart::sync_autostart_on_startup(&handle) {
warn!("Failed to sync autostart state: {}", e);
}
AppState {
status: app_status,
user,