From 9c1ea280927a1376cd31e1b0dfe7ca5abd12e693 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 12 Apr 2023 11:39:05 +0300 Subject: Improve line BiDi handling, prevent crash on recursive log updates. (cherry picked from commit 282e4231c26c172b186a5bf22a8ba7f0337ba3d6) --- scene/gui/rich_text_label.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene/gui/rich_text_label.h') diff --git a/scene/gui/rich_text_label.h b/scene/gui/rich_text_label.h index 1dae8b75ca..5a9a8478b7 100644 --- a/scene/gui/rich_text_label.h +++ b/scene/gui/rich_text_label.h @@ -376,6 +376,7 @@ private: bool threaded = false; std::atomic stop_thread; std::atomic updating; + std::atomic validating; std::atomic loaded; uint64_t loading_started = 0; @@ -679,6 +680,7 @@ public: void deselect(); bool is_ready() const; + bool is_updating() const; void set_threaded(bool p_threaded); bool is_threaded() const; -- cgit v1.2.3