tisfeng / Easydict

一个简洁优雅的词典翻译 macOS App。开箱即用,支持离线 OCR 识别,支持有道词典,🍎 苹果系统词典,🍎 苹果系统翻译,OpenAI,Gemini,DeepL,Google,Bing,腾讯,百度,阿里,小牛,彩云和火山翻译。A concise and elegant Dictionary and Translator macOS App for looking up words and translating text.
GNU General Public License v3.0
6.68k stars 338 forks source link

🐞 反馈问题:main window 关闭后无法再打开 #447

Closed dwgzT closed 3 months ago

dwgzT commented 5 months ago

请先确认以下事项:

问题描述

一旦关闭 main window 就找不到重新打开的地方,可否在菜单中加入?

该问题是否可以稳定重现?

可重现

重现步骤

打开app 关闭main windows

截图

New_Issue_·_tisfeng_Easydict_and_Inbox_-_tengweiguang_gmail_com_-_Gmail

期望结果

在菜单中加入显示main window

解决方案(可选)

在菜单中加入显示main window

设备型号 && 系统版本

Intel i9, and M1, macOS 14.4

是否愿意提交 PR 解决该问题?

github-actions[bot] commented 5 months ago

Hello dwgzT, Thank you for your first issue contribution 🎉

tisfeng commented 5 months ago

这不算 bug,设计就是这样。

最开始没有考虑到 main window,后面才添加的,但加了后发现会导致一些问题,再加上当前 main window 和划词查询窗口功能基本一样,就没有推广主窗口,甚至默认是隐藏状态。

tisfeng commented 5 months ago

之前也不确定是否有用户使用 main window,如果有需要,这里可以修改一下,改为点击关闭主窗口按钮时不销毁 main window,再次点击时直接打开。

dwgzT commented 5 months ago

谢谢你的回复!

我是在搜索 “可以使用 DeepL API 的 Mac app” 时找到这个应用的,比我预想的好用。我的主要使用目的是用我自己的 Auth Key 来翻译长文本,所以喜欢/习惯打开 main window。但尊重你的设计,毕竟软件的名字是词典,偏重取词。

说实话能够支持自定义DeepL API我已经很吃惊了,如果你了解的话,你有推荐的有类似功能的软件吗?感谢!

另外,我的 DeepL Auth Key 在优先使用 Auth Key 的设定下验证成功,但在仅使用 Auth Key 的设定下验证失败,我也不知道怎么回事。我检查了官网的状态,我的 key 是激活的。但我没有其他的应用可以验证我的 key。在优先使用 Auth Key 的设定下,我试验了一段长文本翻译,返回错误 403 forbidden。

我支持你说的关于“改为点击关闭主窗口按钮时不销毁 main window,再次点击时直接打开”的想法,这正是我希望的,如果能实现就会觉得很方便。感谢!

On Fri, Mar 8, 2024 at 7:43 PM Tisfeng @.***> wrote:

之前也不确定是否有用户使用 main window,如果有需要,这里可以修改一下,改为点击关闭主窗口按钮时不销毁 main window,再次点击时直接打开。

— Reply to this email directly, view it on GitHub https://github.com/tisfeng/Easydict/issues/447#issuecomment-1986715620, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGWURZA3RZABZOGOYOV5DTDYXKAO5AVCNFSM6AAAAABENYDIGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWG4YTKNRSGA . You are receiving this because you authored the thread.Message ID: @.***>

-- Weiguang Teng

tisfeng commented 5 months ago

我试过了,DeepL 的验证功能没有问题,403 很可能是 key 出现了异常,DeepL 这方面查得很严,我的 key 也被封了。

image
tisfeng commented 5 months ago

你可以在终端用这个命令确认你的 auth_key 是否有效。

curl --location --request POST 'https://api-free.deepl.com/v2/usage?auth_key=xxx' 
image
tisfeng commented 5 months ago

你有推荐的有类似功能的软件吗?

参考这里:类似开源项目

dwgzT commented 5 months ago

非常感谢你的推荐,我会去试试看。

在终端运行了该命令......什么都没发生,返回到提示符状态。

On Fri, Mar 8, 2024 at 8:39 PM Tisfeng @.***> wrote:

你有推荐的有类似功能的软件吗?

参考这里:类似开源项目 https://github.com/tisfeng/Easydict?tab=readme-ov-file#%E7%B1%BB%E4%BC%BC%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE

— Reply to this email directly, view it on GitHub https://github.com/tisfeng/Easydict/issues/447#issuecomment-1986726826, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGWURZEK4Y7GS6HL7P2Z43DYXKG6JAVCNFSM6AAAAABENYDIGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWG4ZDMOBSGY . You are receiving this because you authored the thread.Message ID: @.***>

-- Weiguang Teng

dwgzT commented 5 months ago

重新生成了key,现在一切OK了

On Fri, Mar 8, 2024 at 9:33 PM Teng Weiguang @.***> wrote:

非常感谢你的推荐,我会去试试看。

在终端运行了该命令......什么都没发生,返回到提示符状态。

On Fri, Mar 8, 2024 at 8:39 PM Tisfeng @.***> wrote:

你有推荐的有类似功能的软件吗?

参考这里:类似开源项目 https://github.com/tisfeng/Easydict?tab=readme-ov-file#%E7%B1%BB%E4%BC%BC%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE

— Reply to this email directly, view it on GitHub https://github.com/tisfeng/Easydict/issues/447#issuecomment-1986726826, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGWURZEK4Y7GS6HL7P2Z43DYXKG6JAVCNFSM6AAAAABENYDIGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWG4ZDMOBSGY . You are receiving this because you authored the thread.Message ID: @.***>

-- Weiguang Teng

-- Weiguang Teng

tisfeng commented 5 months ago

之前也不确定是否有用户使用 main window,如果有需要,这里可以修改一下,改为点击关闭主窗口按钮时不销毁 main window,再次点击时直接打开。

已修改,将会在下个版本生效。

tisfeng commented 3 months ago

2.7.0 版本已修复。

dwgzT commented 3 months ago

谢谢反馈,新版中此问题已解决。