godot4 branch: Each Open of import file chooser dialog connects to signal 'file_selected'
MJacred opened this issue · 3 comments
MJacred commented
Describe the bug
Each Open of import file chooser dialog connects to signal 'file_selected'
Signal 'file_selected' is already connected to given callable 'VBoxContainer(inspector.gd)::_on_file_selected' in that object.
Import still works.
To Reproduce
- open import dialog: Terrain > Import Maps…
- open file chooser for heightmap
- close file chooser dialog
- repeat step 2. -> triggers error message
Environment
- Godot version: 4.0.3
- Plugin version: baeaba8
Zylann commented
That signal is supposed to be disconnected when the dialog's visibility becomes false
:
The signal is emitted when the dialog opens, but... not when it is closed. That broke during the port to Godot 4. Some adjustments needed.