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

Refactor:重构联网自定义主页的刷新逻辑 #5829

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Open-KFC
Copy link

Fixes #5057 ;相关 #5801
写的比较全了,和之前的解决方法也有很大差异,就自己拉个新 PR 吧。
由于提取了一个比较大的函数GetCustomMainpageTarget所以 diff 比较抽象,建议直接去看文件,主要是对RefreshReal的行为进行修改以及把Loader拆分成三个。
和原行为一样的初次进入和之后每隔超十分钟刷新方法被调用时联网检查版本。


原 PR 现在(5b79a3b)有无限递归的重大问题,在于RefreshReal Ln67OnlineLoader#Start的调用一定会导致它调用Refresh -> RefreshReal

@Open-KFC Open-KFC changed the title Fix:删除联网主页的本地缓存文件之后刷新主页不会重新联网下载 Refactor:重构联网自定义主页的刷新逻辑 Mar 10, 2025
@shimoranla shimoranla requested a review from LTCatt March 10, 2025 03:37
@shimoranla shimoranla added · 新功能 等待确认 已经过社区确认,等待开发者确认 labels Mar 10, 2025
@shimoranla
Copy link
Collaborator

原 PR 现在(5b79a3b)有无限递归的重大问题,在于RefreshReal Ln67对OnlineLoader#Start的调用一定会导致它调用Refresh -> RefreshReal。

本来是打算中午再修的(

@LTCatt LTCatt added 处理中 开发者正在调查或处理该项 · 优化 🟩 低 优先度:低 and removed · 新功能 等待确认 已经过社区确认,等待开发者确认 labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
· 优化 处理中 开发者正在调查或处理该项 🟩 低 优先度:低
Projects
None yet
Development

Successfully merging this pull request may close these issues.

运行时清理了联网主页本地缓存不会重新下载
3 participants