[desktop] Fix tauri unexpected exits

This commit is contained in:
Vladimir Stoilov
2024-09-03 11:31:15 +03:00
parent 4ed4640fee
commit e162c81978
2 changed files with 18 additions and 2 deletions

View File

@@ -98,6 +98,13 @@ pub fn close_splash_window(app: &AppHandle) -> Result<()> {
return Err(tauri::Error::WindowNotFound);
}
pub fn hide_splash_window(app: &AppHandle) -> Result<()> {
if let Some(window) = app.get_webview_window("splash") {
return window.hide();
}
return Err(tauri::Error::WindowNotFound);
}
/// Opens a window for the tauri application.
///
/// If the main window has already been created, it is instructed to