Skip to content

Commit

Permalink
Merge pull request #221 from alley-rs/main
Browse files Browse the repository at this point in the history
fix: 非 macOS 平台编译错误
  • Loading branch information
thep0y authored Jul 6, 2024
2 parents 3aa43ae + 64f36ad commit fbcfb0d
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src-tauri/src/feedback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,19 @@ pub async fn new_about_window(handle: tauri::AppHandle) -> FluxyResult<()> {
return Ok(());
}

WindowBuilder::new(&handle, "about", WindowUrl::App("about.html".into()))
#[allow(unused_mut)]
let mut builder = WindowBuilder::new(&handle, "about", WindowUrl::App("about.html".into()))
.title("关于和帮助")
.hidden_title(true)
.inner_size(280., 160.)
.resizable(false)
.minimizable(false)
.build()?;
.inner_size(280., 160.)
.resizable(false);

#[cfg(target_os = "macos")]
{
builder = builder.hidden_title(true);
}

builder.build()?;

Ok(())
}

0 comments on commit fbcfb0d

Please sign in to comment.