Skip to content

Commit

Permalink
fixures
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSchulze committed May 16, 2024
1 parent 08a7d5a commit a3d4632
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 53 deletions.
2 changes: 1 addition & 1 deletion addons/gdUnit4/src/core/GdUnitRunner.gd
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func gdUnitInit() -> void:
send_message("Scaned %d test suites" % _test_suites_to_process.size())
var total_count := _collect_test_case_count(_test_suites_to_process)
_on_gdunit_event(GdUnitInit.new(_test_suites_to_process.size(), total_count))
if not GdUnitSettings.is_inspector_test_discover_enabled():
if not GdUnitSettings.is_test_discover_enabled():
for test_suite in _test_suites_to_process:
send_test_suite(test_suite)

Expand Down
2 changes: 2 additions & 0 deletions addons/gdUnit4/src/ui/parts/InspectorProgressBar.gd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ extends ProgressBar
func _ready() -> void:
GdUnitSignals.instance().gdunit_event.connect(_on_gdunit_event)
style.bg_color = Color.DARK_GREEN
bar.value = 0
bar.max_value = 0
update_text()


Expand Down
1 change: 0 additions & 1 deletion addons/gdUnit4/src/ui/parts/InspectorProgressBar.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 3
text = "0:0"
horizontal_alignment = 1
vertical_alignment = 1
max_lines_visible = 1
12 changes: 6 additions & 6 deletions addons/gdUnit4/src/ui/parts/InspectorTreeMainPanel.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ signal run_testsuite()

const CONTEXT_MENU_RUN_ID = 0
const CONTEXT_MENU_DEBUG_ID = 1
const CONTEXT_MENU_EXPAND_ALL = 3
const CONTEXT_MENU_COLLAPSE_ALL = 4
const CONTEXT_MENU_COLLAPSE_ALL = 3
const CONTEXT_MENU_EXPAND_ALL = 4


@onready var _tree: Tree = $Panel/Tree
Expand Down Expand Up @@ -251,11 +251,11 @@ func do_collapse_parent(item: TreeItem) -> void:
do_collapse_parent(item.get_parent())


func do_collapse_all(collapsed: bool, parent := _tree_root) -> void:
func do_collapse_all(collapse: bool, parent := _tree_root) -> void:
for item in parent.get_children():
item.collapsed = collapsed
if not collapsed:
do_collapse_all(collapsed, item)
item.collapsed = collapse
if not collapse:
do_collapse_all(collapse, item)


func set_state_initial(item: TreeItem) -> void:
Expand Down
Loading

0 comments on commit a3d4632

Please sign in to comment.