Fix macOS relaunch activation (#583)

This commit is contained in:
Gregory Schier
2026-08-18 09:56:40 -07:00
committed by GitHub
parent 131b7e5ab1
commit 3f202ff664
3 changed files with 112 additions and 2 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ use std::time::{Duration, Instant};
use crate::error::Result;
use crate::models_ext::QueryManagerExt;
use crate::restart;
use log::{debug, error, info, warn};
use serde::{Deserialize, Serialize};
use tauri::{Emitter, Listener, Manager, Runtime, WebviewWindow};
@@ -332,7 +333,7 @@ async fn start_native_update<R: Runtime>(window: &WebviewWindow<R>, update: &Upd
))
.blocking_show()
{
window.app_handle().request_restart();
restart::request_restart(window.app_handle());
}
}
Err(e) => {