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.4k stars 325 forks source link

Service enable not work well issue #537

Closed phlpsong closed 2 months ago

phlpsong commented 2 months ago

536

Not sure if this issue is caused by the translation/sentence/dictionary option being disabled, you could try this and give me feedback if this issue still exists.

screen-capture.webm

Jerry23011 commented 2 months ago

I'm able to reproduce the issue on release v2.7.1, but the issue no longer appears on this PR.

I'm not sure if this PR caused a new issue of not being able to toogle on the service for several attempts. It seems to appear only on Built-in AI Translation service

https://github.com/tisfeng/Easydict/assets/89069957/d8dc1341-021c-4c19-960c-919897058a9a

phlpsong commented 2 months ago

Appreciate for your feedback.

Could u check if you disable all options in configuration?

Enable state will not changed if user disable all the options like translation/sentence/dictionary. So I think it's an expected behavior no options enabled.

Jerry23011 commented 2 months ago

Could u check if you disable all options in configuration?

Yes indeed, now it works, thanks

tisfeng commented 2 months ago

I thought about it, and I feel that the enabled query types should not affect whether the service is enabled or not, as it may confuse users, and intuitively they should be independent.

So I changed the code 05ed2786 , please let me know what you think.

Jerry23011 commented 2 months ago

This is more convenient for new users, but would it be better if Translation query is toggled on the same time when the service is toggled?

Sample use case:

  1. The service Built-in Translation is disabled, and all three query type are disabled
  2. Toggle on Built-in Translation service (but the query types remain closed)
  3. Go into Built-in Translation and find that all three query types are disabled.

In this case, would it be nice if translation query is toggled on at the same time the service is toggled on so that users know that it's the default query type?

tisfeng commented 2 months ago

I think it would be better to keep the service enabled or not independent of the query type. Whether the service is enabled determines whether it is displayed in the query window, and the query type determines the query action.

Though your suggestion is good, it associates the enabling of the service with the query type, which could cause some cognitive complexity.

I prefer to let users decide to turn on or off these query types, giving users freedom.

I'd like to try to keep it simple, keep the application simple to configure and use, and easy to understand.

phlpsong commented 2 months ago

Looks good, it's better and more simple and will be less confusing for the user.

Jerry23011 commented 2 months ago

Yes that's true, LGTM