Commit 94b77c7
committed
fix: fix plugin loading order and state synchronization
1. Move loadPlugin() call earlier in init() to ensure plugin is loaded
before other initialization steps when not disabled
2. Reorder itemAdded() call to happen before setting m_pluginLoaded to
true in loadPlugin()
3. Fix logging statement to use correct variable m_shouldShow instead
of shouldShow
4. This ensures proper initialization sequence and prevents potential
race conditions
Log: Fixed plugin loading order and state synchronization issues
Influence:
1. Test plugin initialization when enabled/disabled
2. Verify update icon appears correctly in dock
3. Check plugin state transitions during system updates
4. Test plugin behavior after display mode changes
5. Verify logging shows correct plugin visibility state
fix: 修复插件加载顺序和状态同步问题
1. 将 loadPlugin() 调用移到 init() 函数更早位置,确保插件在未禁用时在其
他初始化步骤之前加载
2. 重新排序 itemAdded() 调用,使其在设置 m_pluginLoaded 为 true 之前执行
3. 修复日志语句,使用正确的变量 m_shouldShow 而不是 shouldShow
4. 确保正确的初始化顺序,防止潜在的竞态条件
Log: 修复插件加载顺序和状态同步问题
Influence:
1. 测试插件在启用/禁用时的初始化
2. 验证更新图标在任务栏中正确显示
3. 检查系统更新期间的插件状态转换
4. 测试显示模式更改后的插件行为
5. 验证日志显示正确的插件可见性状态
PMS: BUG-3454251 parent f944808 commit 94b77c7
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
| |||
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | 237 | | |
239 | 238 | | |
240 | 239 | | |
| |||
347 | 346 | | |
348 | 347 | | |
349 | 348 | | |
350 | | - | |
| 349 | + | |
351 | 350 | | |
352 | 351 | | |
353 | 352 | | |
| |||
0 commit comments