Repository navigation
topbar: the file manager's windows belong to the File Explorer pin - #168
Draft
GuilhermeProvenci wants to merge 1 commit into
Draft
GuilhermeProvenci wants to merge 1 commit into
GuilhermeProvenci wants to merge 1 commit into
Conversation
refresh_buttons matches windows to pins by exe. The File Explorer pin takes explorer.exe from its icon location, but the windows on a WinRust machine are rust-explorer.exe, so they went to another pin (or none) and the File Explorer button never showed them: a minimized window looked gone and a click started a second one. With a File Explorer pin they now go to it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem. With rust-explorer installed and the File Explorer pin on the bar: open a folder, minimize it, and the File Explorer button no longer shows a window. Clicking it starts a second window instead of bringing the first back.
Cause.
refresh_buttonsmatches windows to pins by exe. The File Explorer pin has no target, so its exe comes from the icon location (%windir%\explorer.exe), but the windows arerust-explorer.exe. They go to the separate Rust-explorer pin (or to no pin), and the File Explorer button never has a window.Fix. When a File Explorer pin exists, windows of
rust-explorer.exeare matched asexplorer.exe, so they belong to it. Without such a pin nothing changes.as_pinned_exeis a pure function with a unit test.Test.
cargo test -p topbarpasses. I checked the cause on a real setup (the two pins, their targets and the window's exe). I have not watched the fixed bar run, so this is a draft until that is done. Not tested: two pins of rust-explorer at once, or a user who unpinned File Explorer after the marker file was written.🤖 Generated with Claude Code