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:
parent
72a4de3ae2
commit
c26ad639c6
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
node_modules/
|
||||
|
||||
.yarn/*
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user