diff --git a/src-tauri/src/utils/resolve.rs b/src-tauri/src/utils/resolve.rs index 5ef9b27..14d4bdd 100644 --- a/src-tauri/src/utils/resolve.rs +++ b/src-tauri/src/utils/resolve.rs @@ -67,7 +67,9 @@ pub fn create_window(app_handle: &AppHandle) { Some(size_pos) if size_pos.len() == 4 => { let size = (size_pos[0], size_pos[1]); let pos = (size_pos[2], size_pos[3]); - builder = builder.inner_size(size.0, size.1).position(pos.0, pos.1); + let w = size.0.clamp(600.0, f64::INFINITY); + let h = size.1.clamp(520.0, f64::INFINITY); + builder = builder.inner_size(w, h).position(pos.0, pos.1); } _ => { #[cfg(target_os = "windows")]