This commit is contained in:
PandaDEV 2024-08-25 12:33:16 +10:00
parent 6a8599df76
commit 6c16a79987
No known key found for this signature in database
GPG key ID: 13EFF9BAF70EE75C
50 changed files with 1 additions and 2 deletions

View file

@ -9,7 +9,6 @@ mod utils;
use tauri::{Manager, Listener};
use tauri_plugin_autostart::MacosLauncher;
use tauri_plugin_prevent_default::Flags;
use tauri::WindowEvent;
fn main() {
tauri::Builder::default()
@ -60,7 +59,7 @@ fn main() {
})
.on_window_event(|app, event| {
#[cfg(not(dev))]
if let WindowEvent::Focused(false) = event {
if let tauri::WindowEvent::Focused(false) = event {
if let Some(window) = app.get_webview_window("main") {
let _ = window.hide();
}