From f09204ff5a6c56f45718a001312298ebfddaa6b1 Mon Sep 17 00:00:00 2001 From: lencx Date: Wed, 25 Jan 2023 02:27:38 +0800 Subject: [PATCH] fix: build error --- src-tauri/src/app/setup.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/app/setup.rs b/src-tauri/src/app/setup.rs index f596ec301..236e696d5 100644 --- a/src-tauri/src/app/setup.rs +++ b/src-tauri/src/app/setup.rs @@ -66,7 +66,8 @@ pub fn init(app: &mut App) -> std::result::Result<(), Box .initialization_script(include_str!("../scripts/core.js")) .user_agent(&chat_conf.ua_window); - if cfg!(target_os = "macos") { + #[cfg(target_os = "macos")] + { main_win = main_win .title_bar_style(ChatConfJson::titlebar()) .hidden_title(true);