MikeSchulze / gdUnit4

A Godot Unit Test Framework. Support for GDScript and C# unit testing
MIT License
565 stars 30 forks source link

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

Closed MikeSchulze closed 2 months ago

MikeSchulze commented 2 months ago

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