Update menu.rs

rename tray menu item name
This commit is contained in:
Vangie Du
2023-02-17 16:04:50 +08:00
committed by GitHub
parent 1ab8e1ef47
commit f13e6690b3

View File

@@ -423,13 +423,13 @@ pub fn tray_menu() -> SystemTray {
"hide_dock_icon".to_string(), "hide_dock_icon".to_string(),
"Hide Dock Icon", "Hide Dock Icon",
)) ))
.add_item(CustomMenuItem::new("show_core".to_string(), "Show ChatGPT")); .add_item(CustomMenuItem::new("show_core".to_string(), "Show Window"));
} }
SystemTray::new().with_menu( SystemTray::new().with_menu(
tray_menu tray_menu
.add_native_item(SystemTrayMenuItem::Separator) .add_native_item(SystemTrayMenuItem::Separator)
.add_item(CustomMenuItem::new("quit".to_string(), "Quit ChatGPT")), .add_item(CustomMenuItem::new("quit".to_string(), "Quit")),
) )
} else { } else {
SystemTray::new().with_menu( SystemTray::new().with_menu(
@@ -438,9 +438,9 @@ pub fn tray_menu() -> SystemTray {
"control_center".to_string(), "control_center".to_string(),
"Control Center", "Control Center",
)) ))
.add_item(CustomMenuItem::new("show_core".to_string(), "Show ChatGPT")) .add_item(CustomMenuItem::new("show_core".to_string(), "Show Window"))
.add_native_item(SystemTrayMenuItem::Separator) .add_native_item(SystemTrayMenuItem::Separator)
.add_item(CustomMenuItem::new("quit".to_string(), "Quit ChatGPT")), .add_item(CustomMenuItem::new("quit".to_string(), "Quit")),
) )
} }
} }