chore: optim

This commit is contained in:
lencx
2022-12-29 19:29:33 +08:00
parent 9a9fb24de8
commit f1fa859961
6 changed files with 9 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ pub fn tray_window(handle: &tauri::AppHandle) {
let theme = conf::ChatConfJson::theme();
let app = handle.clone();
std::thread::spawn(move || {
tokio::spawn(async move {
WindowBuilder::new(&app, "tray", WindowUrl::App(chat_conf.origin.into()))
.title("ChatGPT")
.resizable(false)
@@ -28,7 +28,7 @@ pub fn tray_window(handle: &tauri::AppHandle) {
pub fn control_window(handle: &tauri::AppHandle) {
let app = handle.clone();
std::thread::spawn(move || {
tokio::spawn(async move {
WindowBuilder::new(&app, "main", WindowUrl::App("index.html".into()))
.title("ChatGPT")
.resizable(true)