diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-26 13:04:56 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-26 13:04:56 -0600 |
commit | 1bba277d3f217f64248ee40e506c26486842363d (patch) | |
tree | ab951026177cfe69b7ae5be072b31bcd0db23110 | |
parent | 1dffdfdd5bfc39dc4246f7ecd366b38b99a213fe (diff) | |
parent | 6ba86c3852dffecb1aaa9dfcbef58e8559bba95e (diff) | |
download | redot-engine-1bba277d3f217f64248ee40e506c26486842363d.tar.gz |
Merge pull request #99417 from passivestar/thread-selector
Disable the debugger thread selector when there's nothing to select
-rw-r--r-- | editor/debugger/script_editor_debugger.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/debugger/script_editor_debugger.cpp b/editor/debugger/script_editor_debugger.cpp index da59450dd0..416e6f07dd 100644 --- a/editor/debugger/script_editor_debugger.cpp +++ b/editor/debugger/script_editor_debugger.cpp @@ -1062,6 +1062,7 @@ void ScriptEditorDebugger::_update_buttons_state() { for (KeyValue<uint64_t, ThreadDebugged> &I : threads_debugged) { threadss.push_back(&I.value); } + threads->set_disabled(threadss.is_empty()); threadss.sort_custom<ThreadSort>(); threads->clear(); |