mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-11 13:51:11 +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,8 +2,11 @@ tool
|
|||||||
extends ConfirmationDialog
|
extends ConfirmationDialog
|
||||||
|
|
||||||
func _enter_tree():
|
func _enter_tree():
|
||||||
connect("confirmed", self, "on_ok_pressed")
|
if !is_connected("confirmed", self, "on_ok_pressed"):
|
||||||
get_cancel().connect("pressed", self, "on_cancel_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:
|
func on_ok_pressed() -> void:
|
||||||
$UVEditor.ok_pressed()
|
$UVEditor.ok_pressed()
|
||||||
|
Loading…
Reference in New Issue
Block a user