mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Check whether the signals are already connected in uveditor's popup. This fixed an in-editor error message.
This commit is contained in:
parent
8523380059
commit
5c9841c480
@ -2,7 +2,10 @@ tool
|
||||
extends ConfirmationDialog
|
||||
|
||||
func _enter_tree():
|
||||
if !is_connected("confirmed", self, "on_ok_pressed"):
|
||||
connect("confirmed", self, "on_ok_pressed")
|
||||
|
||||
if !get_cancel().is_connected("pressed", self, "on_cancel_pressed"):
|
||||
get_cancel().connect("pressed", self, "on_cancel_pressed")
|
||||
|
||||
func on_ok_pressed() -> void:
|
||||
|
Loading…
Reference in New Issue
Block a user