Repository navigation
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 52cyb The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Reviewer's GuideImplementationAdd pending-dispatch tracking and a cancellable hide timer so eligible repeat requests dispatch immediately while queued requests retain their ordering and the OSD stays visible.
Handle matching repeat display-mode requests by advancing the existing selection without syncing again, while keeping the initial request's sync and action behavior.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="panels/notification/osd/displaymode/package/main.qml" line_range="25" />
<code_context>
- }
- } else if (osdType === "SwitchMonitors") {
- if (Panel.lastOsdType() === osdType) {
- Applet.next()
- }
- }
</code_context>
<issue_to_address>
**Repeat presses use stale choices**
When the initial output fetch fails and recovers, or outputs or the current mode change after sync while the OSD remains visible, `Applet.next()` advances the cached plan without calling `Applet.sync()`, so an empty plan stays empty and changed outputs or modes leave stale choices; the checkmark stays unchanged or points to the wrong choice, and the delayed action targets an unavailable or unintended mode.
Call `Applet.sync()` before `Applet.next()` on repeat presses.
Also at `panels/notification/osd/displaymode/package/main.qml:24`, `panels/notification/osd/displaymode/package/main.qml:26`, `panels/notification/osd/osdpanel.cpp:80`.
</issue_to_address>| return false | ||
|
|
||
| if (osdType === "SwitchMonitors" && Panel.lastOsdType() === osdType) { | ||
| Applet.next() |
There was a problem hiding this comment.
🟡 Medium · Repeat presses use stale choices
When the initial output fetch fails and recovers, or outputs or the current mode change after sync while the OSD remains visible, Applet.next() advances the cached plan without calling Applet.sync(), so an empty plan stays empty and changed outputs or modes leave stale choices; the checkmark stays unchanged or points to the wrong choice, and the delayed action targets an unavailable or unintended mode.
Call Applet.sync() before Applet.next() on repeat presses.
Also at panels/notification/osd/displaymode/package/main.qml:24, panels/notification/osd/displaymode/package/main.qml:26, panels/notification/osd/osdpanel.cpp:80.
Prompt for AI agents
In `panels/notification/osd/displaymode/package/main.qml` at line 25:
**Repeat presses use stale choices**
When the initial output fetch fails and recovers, or outputs or the current mode change after sync while the OSD remains visible, `Applet.next()` advances the cached plan without calling `Applet.sync()`, so an empty plan stays empty and changed outputs or modes leave stale choices; the checkmark stays unchanged or points to the wrong choice, and the delayed action targets an unavailable or unintended mode.
Call `Applet.sync()` before `Applet.next()` on repeat presses.
Also at `panels/notification/osd/displaymode/package/main.qml:24`, `panels/notification/osd/displaymode/package/main.qml:26`, `panels/notification/osd/osdpanel.cpp:80`.
|
1. Dispatch repeat display-mode requests without the 100 ms delay when the OSD is visible and no earlier request is pending. 2. Advance the checkmark directly on repeat presses without resyncing. 3. Cancel pending hides on request receipt and OSD refresh to keep the window visible while delayed requests wait. Log: Make the Super+P display-mode selection respond to repeat presses Influence: 1. Verify the first Super+P press shows the current mode. 2. Verify each repeat advances the checkmark and only the final mode is applied after two seconds without another press. 3. Press again just before the OSD hides and verify it stays visible. fix(osd): 加快 Super+P 连按轮选显示模式时的勾选更新 1. 显示模式 OSD 已打开且无较早请求等待时,立即分发连按事件。 2. 连按时使用已有列表直接更新勾选,跳过同步读取。 3. 收到请求和刷新 OSD 时取消待执行的隐藏动作,避免延迟分发期间闪烁。 Influence: 1. 首按 Super+P,确认界面显示当前模式。 2. 连按时确认勾选逐次前进,停手两秒后只应用最后选中的模式。 3. 在 OSD 即将隐藏时再次按键,确认窗口继续显示。 Log: 改善 Super+P 连按时显示模式勾选的响应速度 PMS: BUG-383567
Log: Make the Super+P display-mode selection respond to repeat presses
Influence:
fix(osd): 加快 Super+P 连按轮选显示模式时的勾选更新
Influence:
Log: 改善 Super+P 连按时显示模式勾选的响应速度
PMS: BUG-383567
Summary by Sourcery
Make repeated display-mode selection updates respond immediately without prematurely applying intermediate modes.
Bug Fixes:
Enhancements: