Skip to content

Commit

Permalink
fix: 修复非 windows 平台编译失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
pboymt committed Mar 31, 2023
1 parent a41bdbd commit c4db657
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion template-creator/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ fn main() {
.max_inner_size(500.0, 400.0)
.min_inner_size(500.0, 400.0)
.center();
if cfg!(target_os = "windows") {
#[cfg(target_os = "windows")]
{
new_window = new_window.owner_window(event.window().hwnd().unwrap())
}
new_window.build().unwrap();
Expand Down

0 comments on commit c4db657

Please sign in to comment.