Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to unbox primitives for DBusMenu nodes #455

Merged
merged 1 commit into from
Sep 17, 2023

Conversation

serebit
Copy link
Member

@serebit serebit commented Sep 11, 2023

Description

No idea why, but sometimes properties are boxed inside variants and need unboxing before they can be used. When a property is updated, if the value is a variant type, attempt to unbox it first up to a limit of 8 times. Resolves #451.

Submitter Checklist

  • Squashed commits with git rebase -i (if needed)
  • Built budgie-desktop and verified that the patch worked (if needed)

@serebit serebit added the bug Something isn't working label Sep 11, 2023
@serebit serebit added this to the 10.8.1 milestone Sep 11, 2023
@serebit serebit linked an issue Sep 11, 2023 that may be closed by this pull request
Copy link
Member

@EbonJaeger EbonJaeger left a comment

Choose a reason for hiding this comment

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

Seems to fix the menu oddities I've observed, though I could only reproduce them only rarely.

src/panel/applets/tray/DBusMenuNode.vala Show resolved Hide resolved
Copy link
Member

@EbonJaeger EbonJaeger left a comment

Choose a reason for hiding this comment

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

LGTM! Seems to be working just as advertised.

@serebit serebit merged commit cfee114 into main Sep 17, 2023
1 check passed
@serebit serebit deleted the 451-system-tray-menus-are-sometimes-blank branch September 17, 2023 00:56
JoshStrobl added a commit that referenced this pull request Sep 17, 2023
JoshStrobl added a commit that referenced this pull request Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

System tray menus are sometimes blank
2 participants