Revert "fix: remove activation policy"

This commit is contained in:
MystiPanda 2024-03-18 09:53:48 +08:00
parent 372a45e667
commit 636e66fe7a
No known key found for this signature in database
GPG Key ID: 47D0F0284DC57888

View File

@ -35,6 +35,8 @@ pub fn find_unused_port() -> Result<u16> {
/// handle something when start app /// handle something when start app
pub fn resolve_setup(app: &mut App) { pub fn resolve_setup(app: &mut App) {
#[cfg(target_os = "macos")]
app.set_activation_policy(tauri::ActivationPolicy::Accessory);
let version = app.package_info().version.to_string(); let version = app.package_info().version.to_string();
handle::Handle::global().init(app.app_handle()); handle::Handle::global().init(app.app_handle());
VERSION.get_or_init(|| version.clone()); VERSION.get_or_init(|| version.clone());