Show the Paste Bar when Pesty is reopened - #68
Merged
Conversation
A normal reopen from Finder, Spotlight, or the Dock now surfaces the primary interface instead of Settings. The hidden-menu-bar escape hatch keeps its old behavior: restore the icon and show Settings, since that reopen is a recovery path rather than a request for the bar. Presentation is gated on the explicit BarWindowController.isPresented state rather than NSWindow.isVisible, per the #64 machinery, and duplicate reopen events coalesce because the phase flips as soon as the first show begins. Reopen half of #38; the launch-time auto-show was dropped per review. Co-authored-by: Alvie Stoddard <alviestoddard@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.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.
Lands the reopen half of #38, folded into the existing reopen handler as the Aug 11 review requested:
barController.isPresented(the Don`t open clipboard #64 state machine) rather thanNSWindow.isVisible.Paste-target staleness on the reopen path is already covered by
pasteTargetfrom #66.Credit to @alvst — extracted and reworked from #38.
— automated maintainer pass on behalf of @momenbasel
Made with Cursor