Commit cd0cf68
committed
refactor: split PluginManager into DccPluginLoader and DccPluginManager
Extract plugin loading state machine from PluginData into DccPluginLoader class
with signal-driven auto-advancing states. Simplify PluginManager (renamed to
DccPluginManager) to only handle scheduling, thread pool and lifecycle management.
Fix display module unnecessary delayed initialization and adjust root/engine
deletion order in cleanup.
将PluginData中的插件加载逻辑提取为DccPluginLoader类,使用信号驱动状态机自动推进。
简化PluginManager(重命名为DccPluginManager)为调度协调角色,仅管理线程池和生命周期。
修复DisplayModule不必要的延迟初始化,调整清理时root/engine的删除顺序。
Log: 重构插件加载架构,分离加载逻辑与调度管理
Influence: 1. 控制中心各模块正常加载和显示;2. 插件隐藏/取消隐藏功能正常;3. 异步数据加载正常;4. 模块切换和页面导航正常1 parent e5225a3 commit cd0cf68
9 files changed
Lines changed: 936 additions & 816 deletions
File tree
- src
- dde-control-center
- plugin-display/operation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
| 100 | + | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| |||
1166 | 1166 | | |
1167 | 1167 | | |
1168 | 1168 | | |
1169 | | - | |
1170 | 1169 | | |
1171 | 1170 | | |
1172 | 1171 | | |
1173 | | - | |
1174 | 1172 | | |
1175 | 1173 | | |
1176 | 1174 | | |
| |||
1181 | 1179 | | |
1182 | 1180 | | |
1183 | 1181 | | |
| 1182 | + | |
1184 | 1183 | | |
| 1184 | + | |
1185 | 1185 | | |
1186 | 1186 | | |
1187 | 1187 | | |
| |||
1191 | 1191 | | |
1192 | 1192 | | |
1193 | 1193 | | |
1194 | | - | |
| 1194 | + | |
1195 | 1195 | | |
1196 | 1196 | | |
1197 | 1197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
0 commit comments