Преглед на файлове

Fixed an old-style .connect() call (#5772)

Christian Wookey преди 3 години
родител
ревизия
6fcaed6497
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tutorials/plugins/editor/inspector_plugins.rst

+ 1 - 1
tutorials/plugins/editor/inspector_plugins.rst

@@ -156,7 +156,7 @@ followed by ``set_bottom_editor()`` to position it below the name.
         add_focusable(property_control)
         # Setup the initial state and connect to the signal to track changes.
         property_control.text = "Value: " + str(current_value)
-        property_control.connect("pressed", self, "_on_button_pressed")
+        property_control.pressed.connect(_on_button_pressed)
 
 
     func _on_button_pressed():