1
0
mirror of https://github.com/lencx/ChatGPT.git synced 2024-10-01 01:06:13 -04:00

fix: Position::TrayFixedCenter not found error

This commit is contained in:
Benhaben 2023-04-02 12:54:48 +08:00
parent 72a4de3ae2
commit c26ad639c6
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
package-lock.json
yarn.lock
node_modules/
.yarn/*

View File

@ -464,7 +464,7 @@ pub fn tray_handler(handle: &AppHandle, event: SystemTrayEvent) {
}
if let Some(tray_win) = handle.get_window("tray") {
tray_win.move_window(Position::TrayFixedCenter).unwrap();
tray_win.move_window(Position::TrayCenter).unwrap();
if tray_win.is_visible().unwrap() {
tray_win.hide().unwrap();