mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-09-19 09:27:29 +02:00
Fix macOS AppKit build
This commit is contained in:
Generated
+1
@@ -1860,6 +1860,7 @@ dependencies = [
|
||||
"image",
|
||||
"log",
|
||||
"notify",
|
||||
"objc2-app-kit",
|
||||
"png 0.17.16",
|
||||
"quick-xml 0.36.2",
|
||||
"rayon",
|
||||
|
||||
@@ -42,6 +42,9 @@ quick-xml = "0.36"
|
||||
urlencoding = "2"
|
||||
sha2 = "0.10"
|
||||
rustls = { version = "0.23", default-features = false, features = ["ring", "logging", "std", "tls12"] }
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
objc2-app-kit = "0.3.2"
|
||||
|
||||
[target.'cfg(target_os = "ios")'.dependencies]
|
||||
tauri-plugin-ios-vault-access = { path = "plugins/ios-vault-access" }
|
||||
|
||||
|
||||
@@ -424,7 +424,7 @@ fn fix_macos_traffic_lights(window: &tauri::WebviewWindow) {
|
||||
None => return,
|
||||
};
|
||||
|
||||
let superview = match close.superview() {
|
||||
let superview = match unsafe { close.superview() } {
|
||||
Some(sv) => sv,
|
||||
None => return,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user