fix: something
This commit is contained in:
parent
76081f8d89
commit
7d8fa4d78a
@ -60,10 +60,12 @@ fn main() -> std::io::Result<()> {
|
|||||||
_ => {}
|
_ => {}
|
||||||
},
|
},
|
||||||
SystemTrayEvent::LeftClick { .. } => {
|
SystemTrayEvent::LeftClick { .. } => {
|
||||||
let window = app_handle.get_window("main").unwrap();
|
if cfg![target_os = "windows"] {
|
||||||
window.unminimize().unwrap();
|
let window = app_handle.get_window("main").unwrap();
|
||||||
window.show().unwrap();
|
window.unminimize().unwrap();
|
||||||
window.set_focus().unwrap();
|
window.show().unwrap();
|
||||||
|
window.set_focus().unwrap();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
})
|
})
|
||||||
|
@ -16,6 +16,7 @@ pub fn resolve_setup(app: &App) {
|
|||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
{
|
{
|
||||||
use tauri_plugin_vibrancy::MacOSVibrancy;
|
use tauri_plugin_vibrancy::MacOSVibrancy;
|
||||||
|
#[allow(deprecated)]
|
||||||
window.apply_vibrancy(MacOSVibrancy::AppearanceBased);
|
window.apply_vibrancy(MacOSVibrancy::AppearanceBased);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user