fix: 修复 /s 命令中路径/工具选择无效的 bug#7
Merged
Merged
Conversation
torrent_callback 对 sb_path_select / sb_tool_select 等回调的处理原本在 PAGE 查找之后,而 /s 搜索结果只存在 search.py 的 PAGE 中,导致 PAGE.get() 返回 None、提前 return,使点击路径/工具按钮无任何响应。 将 sb_path_select、sb_cd_、sb_confirm_path、sb_tool_select、sb_tool_、 sb_cancel_* 和 tb_add_ 等回调的处理移至 PAGE 检查之前,这些操作依赖 DOWNLOAD_INFO 而非搜索结果页,/s 和 /sb 均可正常使用。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
torrent_callback 对 sb_path_select / sb_tool_select 等回调的处理原本在 PAGE 查找之后,而 /s 搜索结果只存在 search.py 的 PAGE 中,导致 PAGE.get() 返回 None、提前 return,使点击路径/工具按钮无任何响应。
将 sb_path_select、sb_cd_、sb_confirm_path、sb_tool_select、sb_tool_、 sb_cancel_* 和 tb_add_ 等回调的处理移至 PAGE 检查之前,这些操作依赖
DOWNLOAD_INFO 而非搜索结果页,/s 和 /sb 均可正常使用。