Bug report form now has an extra check to ensure the received array of tag options is the correct size.

This commit is contained in:
Jamie Greunbaum 2024-06-02 22:54:49 -04:00
parent 097990dcbe
commit 275cc63225

View File

@ -49,6 +49,9 @@ func _exit_tree():
func fill_tags(tag_list:Array): func fill_tags(tag_list:Array):
__label_groups.resize(BugbotServerAPI.BugbotTagArray.MAX) __label_groups.resize(BugbotServerAPI.BugbotTagArray.MAX)
__label_groups = tag_list __label_groups = tag_list
if __label_groups.size() != BugbotServerAPI.BugbotTagArray.MAX:
printerr("Invalid tag array format.")
return
__product_name.text = ProjectSettings.get_setting("application/config/name", __DEFAULT_PRODUCT_NAME) __product_name.text = ProjectSettings.get_setting("application/config/name", __DEFAULT_PRODUCT_NAME)
__fill_item_list(__version_button, BugbotServerAPI.BugbotTagArray.VERSION) __fill_item_list(__version_button, BugbotServerAPI.BugbotTagArray.VERSION)