From 191aa685fa5c2fe828607053a24e70395b42e85e Mon Sep 17 00:00:00 2001 From: hz Date: Sat, 25 Jul 2026 00:52:02 -0500 Subject: [PATCH] Fix shadowed category_label warning in the report-question form A local category_label in _build_report_modal() shadowed the class-level category_label field (the question's topic tag near the stem). Renamed the local to report_category_label. --- scripts/ui/question_player.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/ui/question_player.gd b/scripts/ui/question_player.gd index 0067286..86dad0d 100644 --- a/scripts/ui/question_player.gd +++ b/scripts/ui/question_player.gd @@ -2824,10 +2824,10 @@ func _build_report_modal() -> void: report_form_content.add_theme_constant_override("separation", 12) modal_body.add_child(report_form_content) - var category_label := Label.new() - category_label.text = "What is the problem?" - _set_scaled_label(category_label, 18, Style.CYAN) - report_form_content.add_child(category_label) + var report_category_label := Label.new() + report_category_label.text = "What is the problem?" + _set_scaled_label(report_category_label, 18, Style.CYAN) + report_form_content.add_child(report_category_label) var category_grid := GridContainer.new() category_grid.columns = 2