chore: Progress on rolling progress window

This commit is contained in:
quexeky
2025-01-19 08:41:20 +11:00
parent 5f5cbd07c6
commit cf19477d4d
8 changed files with 74 additions and 60 deletions

View File

@ -57,14 +57,13 @@ pub fn sign_out(app: AppHandle) {
}
#[tauri::command]
pub fn retry_connect(state: tauri::State<'_, Mutex<AppState>>) -> UserValue<(), RemoteAccessError> {
let (app_status, user) = setup()?;
pub fn retry_connect(state: tauri::State<'_, Mutex<AppState>>) {
let (app_status, user) = setup();
let mut guard = state.lock().unwrap();
guard.status = app_status;
guard.user = user;
drop(guard);
UserValue::Ok(())
}
#[tauri::command]