fix(view): reset all-items content state before title update#468
Conversation
Clear the previous all-items resolution state before updating the title. 更新标题前清除上一次全部合集的解析状态。 Log: 修复全部合集解析状态跨刷新残留 Influence: 全部合集比例按钮按当前内容状态正确显示
deepin pr auto review★ 总体评分:95分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 // 修复点:在执行视图可见性检查前,先将集合内容解析状态重置为 false,确保后续能正确触发内容刷新
if (refreshTitleModel === undefined)
refreshTitleModel = true
if (updateDateRange === undefined)
updateDateRange = true
// 重置全局解析状态,确保视图刷新时能重新加载和解析集合内容
GStatus.allCollectionContentResolved = false
if (!(theViewLoader.width > 0)
|| !(theViewLoader.height > theViewLoader.contentTopMargin))
return false |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: pengfeixx, wyu71 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Clear the previous all-items resolution state before updating the title. 更新标题前清除上一次全部合集的解析状态。
Log: 修复全部合集解析状态跨刷新残留
Influence: 全部合集比例按钮按当前内容状态正确显示