diff --git a/src-tauri/src/app/menu.rs b/src-tauri/src/app/menu.rs index 48fbf55..ec8587a 100644 --- a/src-tauri/src/app/menu.rs +++ b/src-tauri/src/app/menu.rs @@ -70,6 +70,7 @@ pub fn init() -> Menu { CustomMenuItem::new("control_center".to_string(), "Control Center") .accelerator("CmdOrCtrl+Shift+P") .into(), + CustomMenuItem::new("dall_e2".to_string(), "Search DALLE-2").into(), MenuItem::Separator.into(), Submenu::new( "Theme", @@ -215,7 +216,7 @@ pub fn menu_handler(event: WindowMenuEvent) { let core_window = app.get_window("core").unwrap(); let menu_handle = core_window.menu_handle(); - + let query = String::from(""); match menu_id { // App "about" => { @@ -231,6 +232,7 @@ pub fn menu_handler(event: WindowMenuEvent) { } // Preferences "control_center" => window::control_window(&app), + "dall_e2"=> window::dalle2_window(&app, query), "restart" => tauri::api::process::restart(&app.env()), "inject_script" => open(&app, script_path), "go_conf" => utils::open_file(utils::chat_root()),