Commit 47e6473
committed
refactor: simplify notification action handling
1. Removed manual action processing in NotifyAccessor and delegated
to DataUpdater
2. Added new actionInvoked method without bubbleId parameter to
NotificationManager
3. Simplified action handling logic by removing direct QProcess
execution
4. Added corresponding methods in NotifyserverApplet to support new
action flow
5. Improved code organization by separating action handling concerns
refactor: 简化通知操作处理逻辑
1. 移除 NotifyAccessor 中的手动操作处理,委托给 DataUpdater
2. 在 NotificationManager 中添加不带 bubbleId 参数的 actionInvoked 方法
3. 通过移除直接 QProcess 执行简化操作处理逻辑
4. 在 NotifyserverApplet 中添加对应方法以支持新的操作流程
5. 通过分离操作处理关注点改进代码组织1 parent 2041ed8 commit 47e6473
5 files changed
Lines changed: 18 additions & 17 deletions
File tree
- panels/notification
- center
- server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
| 199 | + | |
201 | 200 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 201 | + | |
| 202 | + | |
215 | 203 | | |
216 | 204 | | |
217 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments