Browse Source

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

passivestar 9 months ago
parent
commit
6ba86c3852
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/debugger/script_editor_debugger.cpp

+ 1 - 0
editor/debugger/script_editor_debugger.cpp

@@ -1062,6 +1062,7 @@ void ScriptEditorDebugger::_update_buttons_state() {
 	for (KeyValue<uint64_t, ThreadDebugged> &I : threads_debugged) {
 	for (KeyValue<uint64_t, ThreadDebugged> &I : threads_debugged) {
 		threadss.push_back(&I.value);
 		threadss.push_back(&I.value);
 	}
 	}
+	threads->set_disabled(threadss.is_empty());
 
 
 	threadss.sort_custom<ThreadSort>();
 	threadss.sort_custom<ThreadSort>();
 	threads->clear();
 	threads->clear();