Merge pull request #7857 from Hinsbart/external_script_break

Don't switch to script on breakpoint hit when using external editor.
This commit is contained in:
Rémi Verschelde 2017-02-26 20:24:27 +01:00 committed by GitHub
commit 30c5286936

View File

@ -292,6 +292,10 @@ String ScriptEditor::_get_debug_tooltip(const String&p_text,Node *_se) {
void ScriptEditor::_breaked(bool p_breaked,bool p_can_debug) {
if (bool(EditorSettings::get_singleton()->get("text_editor/external/use_external_editor"))) {
return;
}
debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_NEXT), !(p_breaked && p_can_debug));
debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_STEP), !(p_breaked && p_can_debug) );
debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_BREAK), p_breaked );