Commit 2ccf53c
fix: remove unnecessary platform check in AppItem tooltip
1. Removed the platform-specific check `Qt.platform.pluginName ===
"xcb"` from the `onEntered` function
2. The condition now only checks if there are no windows, regardless of
the platform
3. This fix ensures consistent tooltip behavior across all display
backends (X11/Wayland)
Influence:
1. Verify tooltip shows correctly when no windows are open on X11
2. Verify tooltip shows correctly when no windows are open on Wayland
3. Test tooltip behavior when windows are present on both platforms
4. Ensure no regression in existing tooltip functionality
fix: 移除AppItem工具提示中不必要的平台检查
1. 从`onEntered`函数中移除了平台特定的检查`Qt.platform.pluginName ===
"xcb"`
2. 现在条件仅检查是否有窗口存在,与平台无关
3. 此修复确保在所有显示后端(X11/Wayland)上工具提示行为一致
Influence:
1. 验证在X11上无窗口时工具提示正常显示
2. 验证在Wayland上无窗口时工具提示正常显示
3. 测试两种平台上存在窗口时的工具提示行为
4. 确保现有工具提示功能无回归问题
PMS: BUG-3449071 parent cb9a865 commit 2ccf53c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| |||
0 commit comments