mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:53:44 +08:00
fix: remove macOS application menu setup due to CMD+C/V/A issues
This commit is contained in:
parent
1dc015f411
commit
2195576553
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user