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

Use the widget name from widget placement #1628

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

svillar
Copy link
Member

@svillar svillar commented Nov 12, 2024

The WidgetPlacement structure contains the name of the widget. When building the name for the native widgets we were using a combination of "Widget-" prefix + the widget handle. That was not useful at all for debugging as it was not possible to differentiate between widgets by name.

Instead it's much better to use the widget name that is passed in WidgetPlacement. That way we can identify whether a widget is a TrayWidget, a WindowWidget... We keep the widget handle in the name as it's useful to differentiate widgets that may have multiple instances (like Windows for example).

The WidgetPlacement structure contains the name of the widget. When
building the name for the native widgets we were using a combination
of "Widget-" prefix + the widget handle. That was not useful at all
for debugging as it was not possible to differentiate between widgets
by name.

Instead it's much better to use the widget name that is passed in
WidgetPlacement. That way we can identify whether a widget is a
TrayWidget, a WindowWidget... We keep the widget handle in the name
as it's useful to differentiate widgets that may have multiple
instances (like Windows for example).
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.

2 participants