Commit f944808
committed
fix: correct update notification display logic
1. Refactored update state calculation to fix incorrect notification
display
2. Separated system and security update mode checks for clarity
3. Fixed logic error where security updates were not properly considered
4. Now correctly handles all 5 update mode combinations (1,4,5,9,12,13)
5. Added explicit boolean variables to improve code readability
Log: Fixed dock update plugin notification display logic to show updates
correctly based on user settings
Influence:
1. Test with different update mode settings (1,4,5,9,12,13)
2. Verify notifications appear for system updates when enabled
3. Verify notifications appear for security updates when enabled
4. Test combinations where both system and security updates are enabled
5. Verify no false positives when updates are not available
6. Test with different update statuses (needReboot, notDownload, etc.)
fix: 修正更新通知显示逻辑
1. 重构更新状态计算逻辑,修复通知显示不正确的问题
2. 分离系统和安全更新模式检查,提高代码清晰度
3. 修复安全更新未被正确考虑的逻辑错误
4. 现在能正确处理所有5种更新模式组合(1,4,5,9,12,13)
5. 添加显式布尔变量以提高代码可读性
Log: 修复任务栏更新插件通知显示逻辑,根据用户设置正确显示更新通知
Influence:
1. 使用不同的更新模式设置进行测试(1,4,5,9,12,13)
2. 验证启用系统更新时通知是否正确显示
3. 验证启用安全更新时通知是否正确显示
4. 测试同时启用系统和安全更新的组合情况
5. 验证没有更新时不会出现误报
6. 测试不同的更新状态(needReboot, notDownload等)
PMS: BUG-3514871 parent ad8449b commit f944808
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
333 | 336 | | |
334 | 337 | | |
335 | 338 | | |
| |||
0 commit comments