Skip to content

Commit c4db657

Browse files
committed
fix: 修复非 windows 平台编译失败的问题
1 parent a41bdbd commit c4db657

File tree

1 file changed

+2
-1
lines changed
  • template-creator/src-tauri/src

1 file changed

+2
-1
lines changed

template-creator/src-tauri/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ fn main() {
5757
.max_inner_size(500.0, 400.0)
5858
.min_inner_size(500.0, 400.0)
5959
.center();
60-
if cfg!(target_os = "windows") {
60+
#[cfg(target_os = "windows")]
61+
{
6162
new_window = new_window.owner_window(event.window().hwnd().unwrap())
6263
}
6364
new_window.build().unwrap();

0 commit comments

Comments
 (0)