浏览代码

fix: build error

MystiPanda 1 年之前
父节点
当前提交
8437d1763f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src-tauri/src/utils/resolve.rs

+ 2 - 2
src-tauri/src/utils/resolve.rs

@@ -186,9 +186,9 @@ pub fn create_window(app_handle: &AppHandle) {
                 let pos = win.outer_position()?;
 
                 if pos.x < -400
-                    || pos.x > (size.width - 200).try_into()?
+                    || pos.x > (size.width - 200) as i32
                     || pos.y < -200
-                    || pos.y > (size.height - 200).try_into()?
+                    || pos.y > (size.height - 200) as i32
                 {
                     center = true;
                 }