workspace::Open
: Fix trapped cursor/selection on update (#25402)
Closes #ISSUE Issue: Selection index does not reset when the matches update, which can lead to the selection getting trapped when that index does not exist in the next matches. https://github.com/user-attachments/assets/d3fab23f-750c-47fb-bd3b-a0c42f214c83 This is in workspace::Open with "use_system_path_prompts": false Release Notes: - N/A Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
parent
026c7274d9
commit
15d2420031
1 changed files with 1 additions and 0 deletions
|
@ -266,6 +266,7 @@ impl PickerDelegate for OpenPathDelegate {
|
|||
*m,
|
||||
)
|
||||
});
|
||||
this.delegate.selected_index = 0;
|
||||
cx.notify();
|
||||
})
|
||||
.ok();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue