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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user