feat(backend): only hide window on unfocus in production

This commit is contained in:
ByteAtATime 2025-06-30 09:30:50 -07:00
parent 5b064d5b66
commit dc38b38611
No known key found for this signature in database

View file

@ -328,7 +328,9 @@ pub fn run() {
}
tauri::WindowEvent::Focused(false) => {
if let Some(window) = app.get_webview_window("main") {
let _ = window.hide();
if !cfg!(debug_assertions) {
let _ = window.hide();
}
}
}
_ => {}