diff --git a/Cargo.lock b/Cargo.lock index 3cde4483c7..28191ba2e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7701,16 +7701,6 @@ dependencies = [ "objc2-core-foundation", ] -[[package]] -name = "objc2-javascript-core" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9052cb1bb50a4c161d934befcf879526fb87ae9a68858f241e693ca46225cf5a" -dependencies = [ - "objc2 0.6.1", - "objc2-core-foundation", -] - [[package]] name = "objc2-metal" version = "0.2.2" @@ -7747,17 +7737,6 @@ dependencies = [ "objc2-foundation 0.3.1", ] -[[package]] -name = "objc2-security" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1f8e0ef3ab66b08c42644dcb34dba6ec0a574bbd8adbb8bdbdc7a2779731a44" -dependencies = [ - "bitflags 2.5.0", - "objc2 0.6.1", - "objc2-core-foundation", -] - [[package]] name = "objc2-ui-kit" version = "0.3.0" @@ -7782,8 +7761,6 @@ dependencies = [ "objc2-app-kit", "objc2-core-foundation", "objc2-foundation 0.3.1", - "objc2-javascript-core", - "objc2-security", ] [[package]] @@ -12143,8 +12120,6 @@ dependencies = [ "log", "memory_caching", "memory_store", - "objc2-app-kit", - "objc2-web-kit", "once_cell", "openai_sora_client", "primitives", diff --git a/crates/desktop/tauri-artcraft/Cargo.toml b/crates/desktop/tauri-artcraft/Cargo.toml index 9dac4cdb25..b098d553ea 100644 --- a/crates/desktop/tauri-artcraft/Cargo.toml +++ b/crates/desktop/tauri-artcraft/Cargo.toml @@ -67,9 +67,6 @@ tauri-plugin-http = { path = "../../vendor/tauri-plugin-http" } # types and can't do threading. We need to wait for a new version to unpin from Git. discord-rich-presence = { git = "https://github.com/vionya/discord-rich-presence" } -objc2-web-kit = "0.3.1" -objc2-app-kit = "0.3.1" - [dev-dependencies] libloading = "0.8.6" serial_test = "3.2.0" diff --git a/crates/desktop/tauri-artcraft/src/utils/webview_unsafe.rs b/crates/desktop/tauri-artcraft/src/utils/webview_unsafe.rs index 683902b8d7..c7b52a3a64 100644 --- a/crates/desktop/tauri-artcraft/src/utils/webview_unsafe.rs +++ b/crates/desktop/tauri-artcraft/src/utils/webview_unsafe.rs @@ -1,5 +1,5 @@ -use tauri::{AppHandle, Manager, Webview}; use errors::AnyhowResult; +use tauri::{AppHandle, Manager}; const MAIN_WINDOW_NAME: &str = "main"; @@ -7,19 +7,19 @@ pub fn webview_unsafe_for_app(app: &AppHandle) -> AnyhowResult<()> { let windows = app.windows(); let maybe_window = windows.get(MAIN_WINDOW_NAME); - if let Some(window) = maybe_window { + /*if let Some(window) = maybe_window { let webview = window.get_webview(MAIN_WINDOW_NAME); if let Some(webview) = webview { webview_unsafe(&webview); - } } else { return Err(anyhow::anyhow!("Main window not found")); - } + }*/ + Ok(()) } -pub fn webview_unsafe(webview: &Webview) { +/*pub fn webview_unsafe(webview: &Webview) { let r = webview.with_webview(|webview| { webview.controller(); #[cfg(target_os = "macos")] @@ -35,4 +35,4 @@ pub fn webview_unsafe(webview: &Webview) { } }); -} +}*/