From fe78fa76954200ea638ba8f69898a024168d7d9a Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Sun, 14 Jun 2020 20:43:19 +0100 Subject: [PATCH] Clear results from the extraction dialog when it opens --- addons/zylann.translation_editor/tools/extractor_dialog.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/zylann.translation_editor/tools/extractor_dialog.gd b/addons/zylann.translation_editor/tools/extractor_dialog.gd index d13c233..31e2edc 100644 --- a/addons/zylann.translation_editor/tools/extractor_dialog.gd +++ b/addons/zylann.translation_editor/tools/extractor_dialog.gd @@ -34,11 +34,13 @@ func _notification(what: int): if visible: _summary_label.text = "" _results.clear() + _results_list.clear() _update_import_button() func _update_import_button(): - _import_button.disabled = (_results == null or len(_results) == 0) + # Can only import if there are results to import + _import_button.disabled = (len(_results) == 0) func _on_ExtractButton_pressed():