From 2cf9da20ead28307f92075bd2ff0bff3fd162d04 Mon Sep 17 00:00:00 2001 From: lencx Date: Fri, 3 Mar 2023 23:39:18 +0800 Subject: [PATCH] chore: menu --- UPDATE_LOG.md | 7 +++++++ src-tauri/src/app/menu.rs | 2 ++ src-tauri/src/conf.rs | 1 + 3 files changed, 10 insertions(+) diff --git a/UPDATE_LOG.md b/UPDATE_LOG.md index 4467476..de80a22 100644 --- a/UPDATE_LOG.md +++ b/UPDATE_LOG.md @@ -13,6 +13,13 @@ **New repository: https://github.com/lencx/nofwl** +## v0.11.1 + +Fix: + +- Export button blinks (https://github.com/lencx/ChatGPT/issues/541) +- System tray supports sending with Enter key, for text line breaks please use the shortcut key `Shift + Enter` (https://github.com/lencx/ChatGPT/issues/533) + ## v0.11.0 Fix: diff --git a/src-tauri/src/app/menu.rs b/src-tauri/src/app/menu.rs index ec905c9..c5b3645 100644 --- a/src-tauri/src/app/menu.rs +++ b/src-tauri/src/app/menu.rs @@ -143,6 +143,7 @@ pub fn init() -> Menu { .into(), CustomMenuItem::new("clear_conf".to_string(), "Clear Config").into(), MenuItem::Separator.into(), + CustomMenuItem::new("nofwl".to_string(), "NoFWL Desktop Application").into(), CustomMenuItem::new("buy_coffee".to_string(), "Buy lencx a coffee").into(), ]), ); @@ -257,6 +258,7 @@ pub fn menu_handler(event: WindowMenuEvent) { conf::APP_WEBSITE.into(), None, ), + "nofwl" => open(&app, conf::NOFWL_APP.to_string()), "buy_coffee" => open(&app, conf::BUY_COFFEE.to_string()), "popup_search" => { let app_conf = AppConf::read(); diff --git a/src-tauri/src/conf.rs b/src-tauri/src/conf.rs index 0dc44fa..2faef14 100644 --- a/src-tauri/src/conf.rs +++ b/src-tauri/src/conf.rs @@ -10,6 +10,7 @@ use crate::utils::{app_root, create_file, exists}; pub const APP_WEBSITE: &str = "https://lencx.github.io/app/"; pub const ISSUES_URL: &str = "https://github.com/lencx/ChatGPT/issues"; +pub const NOFWL_APP: &str = "https://github.com/lencx/nofwl"; pub const UPDATE_LOG_URL: &str = "https://github.com/lencx/ChatGPT/blob/main/UPDATE_LOG.md"; pub const BUY_COFFEE: &str = "https://www.buymeacoffee.com/lencx"; pub const GITHUB_PROMPTS_CSV_URL: &str =