Merge pull request #99417 from passivestar/thread-selector

Disable the debugger thread selector when there's nothing to select
This commit is contained in:
Thaddeus Crews
2024-11-26 13:04:56 -06:00

View File

@ -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();