diff options
| author | dam <dam@gudinoff> | 2022-03-31 16:05:54 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-03-31 16:05:54 +0000 |
| commit | 9b619b8c5f117e53b121c2d868b024c7c7d08f4c (patch) | |
| tree | 0dde86709240834ba3acb078b605af1b76a8cb18 /option_set/option_set.gd | |
| parent | 6089eeb29382598d69c6b77be88d8ca4b1a3adf5 (diff) | |
| download | surgery-log-9b619b8c5f117e53b121c2d868b024c7c7d08f4c.tar.zst surgery-log-9b619b8c5f117e53b121c2d868b024c7c7d08f4c.zip | |
Fixed signals on popup and modal_dialog to make those usable.
Diffstat (limited to 'option_set/option_set.gd')
| -rw-r--r-- | option_set/option_set.gd | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/option_set/option_set.gd b/option_set/option_set.gd index 637d033..0e8f90e 100644 --- a/option_set/option_set.gd +++ b/option_set/option_set.gd @@ -35,14 +35,10 @@ func show_options(options_array: Array): options.unselect() options.connect("item_selected", self, "popup_result", []) options.connect("nothing_selected", self, "popup_result", [-1, ""]) - popup.connect("dismissed", self, "popup_result", [selected_idx, input.text]) popup.open_popup(input.placeholder_text, options) func popup_result(index: int, text: String): - options.disconnect("item_selected", self, "popup_result") - options.disconnect("nothing_selected", self, "popup_result") - popup.disconnect("dismissed", self, "popup_result") selected_idx = index input.text = text input.caret_position = input.max_length |
