Commit 0093efa
committed
fix(dbus): pass isNewLaunch flag to fix LastLaunchedTime stats
sender() always returns nullptr when called across QObject
boundaries. handleUnitStarted on ApplicationService was using
sender() to determine launch tracking, causing
LastLaunchedTime/LaunchedTimes to never be updated. Use an
explicit bool parameter instead.
handleUnitStarted 在 ApplicationService 上通过 sender()
判断是否为新启动,但跨 QObject 调用时 sender() 始终为
nullptr,导致 LastLaunchedTime/LaunchedTimes 无法更新。
改为显式传递 bool 参数。
Log: 修复跨 QObject 调用时 sender() 失效导致启动统计不更新
Influence: 修复后 LastLaunchedTime 和 LaunchedTimes 能正确记录每次应用的启动时间与次数。
PMS: TASK-3894051 parent 14618d4 commit 0093efa
3 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
1147 | | - | |
| 1147 | + | |
| 1148 | + | |
1148 | 1149 | | |
1149 | 1150 | | |
1150 | 1151 | | |
1151 | | - | |
| 1152 | + | |
1152 | 1153 | | |
1153 | 1154 | | |
1154 | 1155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
0 commit comments