From 03202c02daf47b53d6dd6c91561c69aba476fc68 Mon Sep 17 00:00:00 2001 From: JingZhang Chen Date: Thu, 9 May 2024 18:05:47 +0800 Subject: [PATCH] fix: eudic2 shortcut did not work --- Easydict/objc/EventMonitor/EZEventMonitor.m | 1 + Easydict/objc/ViewController/View/Titlebar/EZTitlebar.m | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Easydict/objc/EventMonitor/EZEventMonitor.m b/Easydict/objc/EventMonitor/EZEventMonitor.m index 0f1f50b66..4a808d3e7 100644 --- a/Easydict/objc/EventMonitor/EZEventMonitor.m +++ b/Easydict/objc/EventMonitor/EZEventMonitor.m @@ -703,6 +703,7 @@ - (BOOL)isSupportEmptyCopy { @"com.eusoft.freeeudic", // Eudic @"com.eusoft.eudic", + @"eusoft.eudic.ip", @"com.reederapp.5.macOS", // Reeder @"com.apple.ScriptEditor2", // 脚本编辑器 @"abnerworks.Typora", // Typora diff --git a/Easydict/objc/ViewController/View/Titlebar/EZTitlebar.m b/Easydict/objc/ViewController/View/Titlebar/EZTitlebar.m index 031a1f1f3..38182d0c1 100644 --- a/Easydict/objc/ViewController/View/Titlebar/EZTitlebar.m +++ b/Easydict/objc/ViewController/View/Titlebar/EZTitlebar.m @@ -332,7 +332,7 @@ - (void)setPin:(BOOL)pin { // Eudic if (Configuration.shared.showEudicQuickLink) { // !!!: Note that some applications have multiple channel versions. Refer: https://github.com/tisfeng/Raycast-Easydict/issues/16 - BOOL installedEudic = [self checkInstalledApp:@[ @"com.eusoft.freeeudic", @"com.eusoft.eudic" ]]; + BOOL installedEudic = [self checkInstalledApp:@[ @"com.eusoft.freeeudic", @"com.eusoft.eudic", @"eusoft.eudic.ip" ]]; if (installedEudic) { [shortcutButtonTypes addObject:@(EZTitlebarButtonTypeEudicDic)]; }