Commit 118177f
committed
refactor(notification): move wayland guard into initScreenLockedState
1. Moved the Wayland platform check from the constructor into initScreenLockedState()
2. Replaced QGuiApplication::platformName() string comparison with DGuiApplicationHelper::testAttribute(IsWaylandPlatform)
3. Added TODO note for future Wayland session support in screen lock detection
Log: Refactor Wayland session check into initScreenLockedState using Dtk API
refactor(notification): 将 Wayland 检测移入 initScreenLockedState
1. 将 Wayland 平台检测从构造函数移入 initScreenLockedState() 方法
2. 使用 DGuiApplicationHelper::testAttribute(IsWaylandPlatform) 替代 QGuiApplication::platformName() 字符串比较
3. 添加 TODO 注释记录待 Wayland 支持屏幕锁检测
Log: 用 Dtk API 重构 Wayland 检测逻辑,移入 initScreenLockedState1 parent ae3a27b commit 118177f
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 85 | + | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
641 | 640 | | |
642 | 641 | | |
643 | 642 | | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
644 | 648 | | |
645 | 649 | | |
646 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
647 | 657 | | |
648 | 658 | | |
649 | 659 | | |
| |||
0 commit comments