fix(desktop): validate app-open links on secondary launch
This commit is contained in:
1 file changed
+2
-1
@@ -1290,6 +1290,7 @@ pub fn run() {
|
||||
|
||||
let builder = if should_enable_single_instance(cfg!(debug_assertions)) {
|
||||
builder.plugin(tauri_plugin_single_instance::init(|app, args, cwd| {
|
||||
let app_open_requested = args.iter().any(|arg| commands::deep_link::is_app_open_deep_link(arg));
|
||||
let links = commands::deep_link::connection_deep_links_from_args(args.clone());
|
||||
open_connection_deep_links(app, links);
|
||||
|
||||
@@ -1314,7 +1315,7 @@ pub fn run() {
|
||||
// simply vanished - so make the reason recoverable from the logs.
|
||||
if !show_main_window(app) {
|
||||
eprintln!(
|
||||
"[WINDOW] single-instance handoff could not reveal the main window; {}",
|
||||
"[WINDOW] single-instance handoff could not reveal the main window; app_open_requested={app_open_requested}; {}",
|
||||
main_window_probe_state(app)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user