fix: remove macOS application menu setup due to CMD+C/V/A issues

This commit is contained in:
Tunglies 2025-03-20 18:14:18 +08:00
parent 1dc015f411
commit 2195576553

View File

@ -11,12 +11,9 @@ use crate::{
}; };
use config::Config; use config::Config;
use std::sync::{Mutex, Once}; use std::sync::{Mutex, Once};
use tauri::AppHandle;
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
use tauri::Manager; use tauri::Manager;
use tauri::{
menu::{Menu, MenuItem, Submenu},
AppHandle,
};
use tauri_plugin_autostart::MacosLauncher; use tauri_plugin_autostart::MacosLauncher;
use tauri_plugin_deep_link::DeepLinkExt; use tauri_plugin_deep_link::DeepLinkExt;
@ -227,18 +224,7 @@ pub fn run() {
// Macos Application Menu // Macos Application Menu
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
{ {
builder = builder.menu(|handle| { // Temporary Achived due to cannot CMD+C/V/A
Menu::with_items(
handle,
&[&Submenu::with_items(
handle,
"Menu",
true,
&[&MenuItem::new(handle, "Clash Verge", true, None::<String>).unwrap()],
)
.unwrap()],
)
});
} }
let app = builder let app = builder