Skip to content

PopoverManager: DRY and organize current_indicator setter - #734

Merged
danirabbit merged 7 commits into
mainfrom
danirabbit/popovermanager-currentdryorganize
Nov 21, 2026
Merged

danirabbit merged 7 commits into
mainfrom
danirabbit/popovermanager-currentdryorganize

Conversation

@danirabbit

Copy link
Copy Markdown
Member
  • Remove some else/if nesting where possible
  • DRY things that happen on both close and switch
  • DRY things that happen on both switch and open
  • Don't unparent in popover close because we do that already in current_indicator = null

@danirabbit
danirabbit requested review from a team and lenemter September 19, 2026 17:50
@lenemter
lenemter force-pushed the danirabbit/popovermanager-currentdryorganize branch from 4e9fa7f to 2f549f3 Compare October 2, 2026 16:44

@lenemter lenemter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indicators randomly stop opening for me until I reopen Applications menu through via the shortcut

Comment thread src/Services/PopoverManager.vala Resolved
@danirabbit

danirabbit commented Oct 2, 2026 •

Copy link
Copy Markdown
Member Author

@lenemter that happens to me in main as well. There shouldn't be any logic changes in this branch, just refactoring

@danirabbit
danirabbit requested a review from a team October 31, 2026 15:23

@zeebok zeebok left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of comments before I give a thumbs up

Comment thread src/Services/PopoverManager.vala Resolved
Comment thread src/Services/PopoverManager.vala Resolved

@zeebok zeebok left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool thanks for explaining, looks gooooood to me!

@danirabbit
danirabbit merged commit f5f0f9d into main Nov 21, 2026
3 of 6 checks passed
@danirabbit
danirabbit deleted the danirabbit/popovermanager-currentdryorganize branch November 21, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants