Merge pull request #32390 from lupoDharkael/timer-tree
TextEdit: Fix timer inside tree warning
This commit is contained in:
commit
d4ff03c0e8
1 changed files with 2 additions and 2 deletions
|
@ -3965,7 +3965,7 @@ void TextEdit::_base_remove_text(int p_from_line, int p_from_column, int p_to_li
|
|||
|
||||
void TextEdit::_insert_text(int p_line, int p_char, const String &p_text, int *r_end_line, int *r_end_char) {
|
||||
|
||||
if (!setting_text)
|
||||
if (!setting_text && idle_detect->is_inside_tree())
|
||||
idle_detect->start();
|
||||
|
||||
if (undo_enabled) {
|
||||
|
@ -4019,7 +4019,7 @@ void TextEdit::_insert_text(int p_line, int p_char, const String &p_text, int *r
|
|||
|
||||
void TextEdit::_remove_text(int p_from_line, int p_from_column, int p_to_line, int p_to_column) {
|
||||
|
||||
if (!setting_text)
|
||||
if (!setting_text && idle_detect->is_inside_tree())
|
||||
idle_detect->start();
|
||||
|
||||
String text;
|
||||
|
|
Loading…
Reference in a new issue