Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

Merge branch 'main' of github.com:tonhowtf/omniget

Tonho16e1209a5fd8
diff --cc src-tauri/src/external_url.rs
index c65a2b5f,c120e2ca..b3d497a4
--- a/src-tauri/src/external_url.rs
+++ b/src-tauri/src/external_url.rs
@@@ -303,11 -316,15 +317,11 @@@ pub async fn handle_external_url
|| settings.download.auto_download_on_paste)
&& has_valid_output_dir(&settings.download.default_output_dir);
- let open_app_flag = crate::native_host::peek_extension_open_app(&url);
+ let open_app_flag = crate::extension_storage::peek_extension_open_app(&url);
let action = if can_queue_directly {
- let outcome = queue_url_with_defaults(app, url.clone(), false).await?;
- // The native-messaging path only shows the window when the extension's
- // "Open app" toggle is on. When the request arrived via the omniget://
- // scheme, no metadata exists (it bypasses the native host), so we use
- // the scheme presence itself as the user's intent to bring up the app.
+ let outcome = queue_url_with_defaults(app, url.clone(), false, None).await?;
- if open_app_flag == Some(true) {
+ if open_app_flag == Some(true) || scheme_arrival {
crate::tray::show_window(app);
}
match outcome {