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

GD-549: Fix error if GdUnit4 inspector tab is floating #552

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Conversation

MikeSchulze
Copy link
Owner

Why

Run tests with a floating GdUnit4 inspector tab shows an error: res://addons/gdUnit4/src/ui/GdUnitInspector.gd:15 - Trying to assign value of type 'MarginContainer' to a variable of type 'TabContainer'.

What

Added a check if the inspector is a tab component to avoid this kind of error

# Why
Run tests with a floating GdUnit4 inspector tab shows an error:
`res://addons/gdUnit4/src/ui/GdUnitInspector.gd:15 - Trying to assign value of type 'MarginContainer' to a variable of type 'TabContainer'.`

# What
Added an check if the inspector is a tab component to avoid this kind of error
@MikeSchulze MikeSchulze self-assigned this Jul 30, 2024
@MikeSchulze MikeSchulze added bug Something isn't working UI labels Jul 30, 2024
@MikeSchulze MikeSchulze merged commit faf8ff9 into master Jul 30, 2024
@MikeSchulze MikeSchulze deleted the GD-549 branch July 30, 2024 07:45
@MikeSchulze MikeSchulze added this to the v4.4.0 milestone Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GD-549: Error reported in console when tests are run in a popped-out GdUnit4 window.
1 participant