Commit 5d8f7e0
committed
fix: fix notification settings opening via direct D-Bus call
Changed the method of opening notification settings from using the
controlCenterInterface() helper to directly constructing a D-Bus message
and making an async call. The previous approach used a QDBusReply which
would wait for a synchronous response, potentially blocking the UI.
The new implementation uses QDBusMessage::createMethodCall to create
the message and QDBusConnection::sessionBus().asyncCall() to send it
asynchronously, improving responsiveness.
Log: Fixed issue where opening notification settings could cause UI lag
Influence:
1. Test clicking notification settings button in notification center
2. Verify settings window opens without delay
3. Check that other notification center functions remain unaffected
4. Test with multiple rapid clicks to ensure no blocking occurs
fix: 修复通过直接 D-Bus 调用打开通知设置的问题
将打开通知设置的方法从使用 controlCenterInterface() 辅助函数改为直接构造
D-Bus 消息并进行异步调用。之前的方法使用 QDBusReply 会等待同步响应,可能
导致 UI 阻塞。新实现使用 QDBusMessage::createMethodCall 创建消息,并使用
QDBusConnection::sessionBus().asyncCall() 异步发送,提高了响应速度。
Log: 修复了打开通知设置可能导致界面卡顿的问题
Influence:
1. 测试通知中心中点击通知设置按钮
2. 验证设置窗口打开无延迟
3. 检查通知中心其他功能是否不受影响
4. 测试多次快速点击确保不会发生阻塞
PMS: BUG-3538951 parent 0b9cab0 commit 5d8f7e0
1 file changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
228 | 236 | | |
229 | 237 | | |
230 | 238 | | |
| |||
0 commit comments