mirror of
https://github.com/lencx/ChatGPT.git
synced 2026-02-06 16:06:56 +00:00
fix: build error
This commit is contained in:
parent
c55ac1df3b
commit
817cd6f87c
@ -62,13 +62,14 @@ pub fn init(app: &mut App) -> std::result::Result<(), Box<dyn std::error::Error>
|
||||
.inner_size(800.0, 600.0)
|
||||
.theme(theme)
|
||||
.always_on_top(chat_conf.stay_on_top)
|
||||
.title_bar_style(ChatConfJson::titlebar())
|
||||
.initialization_script(&utils::user_script())
|
||||
.initialization_script(include_str!("../scripts/core.js"))
|
||||
.user_agent(&chat_conf.ua_window);
|
||||
|
||||
if cfg!(target_os = "macos") {
|
||||
main_win = main_win.hidden_title(true);
|
||||
main_win = main_win
|
||||
.title_bar_style(ChatConfJson::titlebar())
|
||||
.hidden_title(true);
|
||||
}
|
||||
|
||||
if url == "https://chat.openai.com" && !chat_conf.main_dashboard {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user