Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 反馈问题:开启自启动后,每次开机都会弹出「后台任务添加」 #403

Closed
5 of 6 tasks
Lxnii opened this issue Feb 11, 2024 · 5 comments
Closed
5 of 6 tasks
Assignees
Labels
bug Something isn't working fixed in next release The issue will be closed once next release is available

Comments

@Lxnii
Copy link

Lxnii commented Feb 11, 2024

请先确认以下事项:

  • 请务必查看 常见问题
  • 已仔细阅读了 README
  • issues 页面搜索过问题(包括已关闭的 issue),但未能找到解决方法
  • Easydict 已升级到 最新版本
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述

开启开机启动后每次开机都会弹出「后台任务添加」提醒,2.5 版本并不会。

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

可重现

重现步骤

开启开机启动,每次重启

截图

Screenshot 2024-02-11 at 12 18 36

期望结果

不会重复提醒

解决方案(可选)

No response

设备型号 && 系统版本

M2 Pro, 14.3.1

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

  • 我愿意提交 PR
@Lxnii Lxnii added the bug Something isn't working label Feb 11, 2024
@tisfeng
Copy link
Owner

tisfeng commented Feb 12, 2024

开启开机启动后每次开机都会弹出「后台任务添加」提醒,2.5 版本并不会。

@NeverAgain11 请确认一下这个问题,可能是使用 Swift 重写导致。

@NeverAgain11
Copy link
Collaborator

开启开机启动后每次开机都会弹出「后台任务添加」提醒,2.5 版本并不会。

@NeverAgain11 请确认一下这个问题,可能是使用 Swift 重写导致。

好,我看看

@NeverAgain11
Copy link
Collaborator

@tisfeng
We use Defaults to observe the change in the LaunchAtStart value, the oldValue will always return false when initialised, even if the value in UserDefault is true.

One solution is that we can remove the initial option, then it will be called when the value changes.
Currently it is called both on app startup and on value change.
I don't think it needs to be called on startup.

@tisfeng
Copy link
Owner

tisfeng commented Feb 15, 2024

确实,启动时不需要调用这个方法,你修改试试。

@tisfeng tisfeng added the fixed in next release The issue will be closed once next release is available label Feb 16, 2024
@tisfeng
Copy link
Owner

tisfeng commented Feb 25, 2024

2.6.1 版本已修复该问题。

@tisfeng tisfeng closed this as completed Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in next release The issue will be closed once next release is available
Projects
None yet
Development

No branches or pull requests

3 participants