diff --git a/ChatGPT b/ChatGPT new file mode 160000 index 000000000..a6de9a8b6 --- /dev/null +++ b/ChatGPT @@ -0,0 +1 @@ +Subproject commit a6de9a8b61077fa63ad5c3ecbe2bc12e0cb4b4b9 diff --git a/src-tauri/src/core/window.rs b/src-tauri/src/core/window.rs index 9ecdf31e3..744ad538f 100644 --- a/src-tauri/src/core/window.rs +++ b/src-tauri/src/core/window.rs @@ -6,12 +6,17 @@ use crate::core::constant::WINDOW_SETTINGS; pub fn open_settings(app: AppHandle) { match app.get_webview_window(WINDOW_SETTINGS) { Some(window) => { - window.show().unwrap(); + let _ = window.unminimize(); + let _ = window.set_focus(); + let _ = window.show(); } None => { WebviewWindowBuilder::new(&app, WINDOW_SETTINGS, WebviewUrl::App("index.html".into())) + .decorations(true) + .transparent(false) // set to true if you want frameless look + .theme(Some(tauri::Theme::Dark)) // ⚠️ Only works on Tauri >=1.5 .build() .unwrap(); } } -} +} \ No newline at end of file