fix: rm unwrap

This commit is contained in:
GyDi 2022-05-09 14:01:14 +08:00 committed by GitHub
parent 0be4b1222d
commit 8cdbb31dbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,24 +38,20 @@ fn resolve_window(app: &App) {
use window_shadows::set_shadow; use window_shadows::set_shadow;
use window_vibrancy::apply_blur; use window_vibrancy::apply_blur;
window.set_decorations(false).unwrap(); let _ = window.set_decorations(false);
set_shadow(&window, true).unwrap(); let _ = set_shadow(&window, true);
apply_blur(&window, None).unwrap(); let _ = apply_blur(&window, None);
} }
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
{ {
use tauri::LogicalSize; use tauri::LogicalSize;
use tauri::Size::Logical; use tauri::Size::Logical;
window.set_decorations(true).unwrap();
window let _ = window.set_decorations(true);
.set_size(Logical(LogicalSize { let _ = window.set_size(Logical(LogicalSize {
width: 800.0, width: 800.0,
height: 620.0, height: 620.0,
})) }));
.unwrap();
// use tauri_plugin_vibrancy::MacOSVibrancy;
// #[allow(deprecated)]
// window.apply_vibrancy(MacOSVibrancy::AppearanceBased);
} }
} }