diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2023-10-21 12:16:34 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-21 18:16:34 +0200 |
| commit | 82f2edac1a348b274c177abf5581b089cdf2e527 (patch) | |
| tree | a8b4fed1e5106adc7e14457d00c6e1de0ade2050 /lib/utils/threading.py | |
| parent | 526cd48a4f73d9b793b5a83ababd83069f4ad800 (diff) | |
attach params/lettering simulator window and allow detach (#2557)
Diffstat (limited to 'lib/utils/threading.py')
| -rw-r--r-- | lib/utils/threading.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/threading.py b/lib/utils/threading.py index f0c22887..f774dcbe 100644 --- a/lib/utils/threading.py +++ b/lib/utils/threading.py @@ -17,6 +17,7 @@ _default_stop_flag = threading.Event() def check_stop_flag(): + # This getattr() actually looks at the PreviewRenderer instance's stop attribute. if getattr(threading.current_thread(), 'stop', _default_stop_flag).is_set(): debug.log("exiting thread") raise ExitThread() |
