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.
This commit is contained in:
hz
2026-07-25 00:52:02 -05:00
parent 65ae99e2ce
commit 191aa685fa
+4 -4
View File
@@ -2824,10 +2824,10 @@ func _build_report_modal() -> void:
report_form_content.add_theme_constant_override("separation", 12) report_form_content.add_theme_constant_override("separation", 12)
modal_body.add_child(report_form_content) modal_body.add_child(report_form_content)
var category_label := Label.new() var report_category_label := Label.new()
category_label.text = "What is the problem?" report_category_label.text = "What is the problem?"
_set_scaled_label(category_label, 18, Style.CYAN) _set_scaled_label(report_category_label, 18, Style.CYAN)
report_form_content.add_child(category_label) report_form_content.add_child(report_category_label)
var category_grid := GridContainer.new() var category_grid := GridContainer.new()
category_grid.columns = 2 category_grid.columns = 2