Disable the debugger thread selector when there's nothing to select

This commit is contained in:
passivestar 2024-11-19 08:19:05 +04:00
parent fd4c29a189
commit 6ba86c3852

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