mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
fix: set_activation_policy
This commit is contained in:
parent
ec94218a4b
commit
f2bd6f1fce
|
@ -145,10 +145,14 @@ fn main() -> std::io::Result<()> {
|
|||
builder = builder.menu(Menu::new().add_submenu(submenu_file));
|
||||
}
|
||||
|
||||
let app = builder
|
||||
#[allow(unused_mut)]
|
||||
let mut app = builder
|
||||
.build(context)
|
||||
.expect("error while running tauri application");
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
app.set_activation_policy(tauri::ActivationPolicy::Accessory);
|
||||
|
||||
let app_handle = app.app_handle();
|
||||
ctrlc::set_handler(move || {
|
||||
resolve::resolve_reset();
|
||||
|
|
Loading…
Reference in New Issue
Block a user