You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Allow floating-point values in the idle parse delay editor setting
This also makes value changes effective without having to restart the editor.
This commit is contained in:
@@ -1289,6 +1289,8 @@ void CodeTextEditor::_on_settings_change() {
|
||||
text_editor->set_callhint_settings(
|
||||
EDITOR_DEF("text_editor/completion/put_callhint_tooltip_below_current_line", true),
|
||||
EDITOR_DEF("text_editor/completion/callhint_tooltip_offset", Vector2()));
|
||||
|
||||
idle->set_wait_time(EDITOR_DEF("text_editor/completion/idle_parse_delay", 2.0));
|
||||
}
|
||||
|
||||
void CodeTextEditor::_text_changed_idle_timeout() {
|
||||
@@ -1403,7 +1405,7 @@ CodeTextEditor::CodeTextEditor() {
|
||||
idle = memnew(Timer);
|
||||
add_child(idle);
|
||||
idle->set_one_shot(true);
|
||||
idle->set_wait_time(EDITOR_DEF("text_editor/completion/idle_parse_delay", 2));
|
||||
idle->set_wait_time(EDITOR_DEF("text_editor/completion/idle_parse_delay", 2.0));
|
||||
|
||||
code_complete_timer = memnew(Timer);
|
||||
add_child(code_complete_timer);
|
||||
|
||||
Reference in New Issue
Block a user