You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Fix project run/stop buttons disappearing in the editor
This commit is contained in:
@@ -6957,6 +6957,8 @@ EditorNode::EditorNode() {
|
|||||||
play_custom_scene_button->connect("pressed", callable_mp(this, &EditorNode::_menu_option).bind(RUN_PLAY_CUSTOM_SCENE));
|
play_custom_scene_button->connect("pressed", callable_mp(this, &EditorNode::_menu_option).bind(RUN_PLAY_CUSTOM_SCENE));
|
||||||
play_custom_scene_button->set_tooltip_text(TTR("Run a specific scene."));
|
play_custom_scene_button->set_tooltip_text(TTR("Run a specific scene."));
|
||||||
|
|
||||||
|
_reset_play_buttons();
|
||||||
|
|
||||||
ED_SHORTCUT_AND_COMMAND("editor/run_specific_scene", TTR("Run Specific Scene"), KeyModifierMask::META | KeyModifierMask::SHIFT | Key::F5);
|
ED_SHORTCUT_AND_COMMAND("editor/run_specific_scene", TTR("Run Specific Scene"), KeyModifierMask::META | KeyModifierMask::SHIFT | Key::F5);
|
||||||
ED_SHORTCUT_OVERRIDE("editor/run_specific_scene", "macos", KeyModifierMask::META | KeyModifierMask::SHIFT | Key::R);
|
ED_SHORTCUT_OVERRIDE("editor/run_specific_scene", "macos", KeyModifierMask::META | KeyModifierMask::SHIFT | Key::R);
|
||||||
play_custom_scene_button->set_shortcut(ED_GET_SHORTCUT("editor/run_specific_scene"));
|
play_custom_scene_button->set_shortcut(ED_GET_SHORTCUT("editor/run_specific_scene"));
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ Error EditorRun::run(const String &p_scene, const String &p_write_movie) {
|
|||||||
|
|
||||||
// Pass the debugger stop shortcut to the running instance(s).
|
// Pass the debugger stop shortcut to the running instance(s).
|
||||||
String shortcut;
|
String shortcut;
|
||||||
VariantWriter::write_to_string(ED_GET_SHORTCUT("editor/stop"), shortcut);
|
VariantWriter::write_to_string(ED_GET_SHORTCUT("editor/stop_running_project"), shortcut);
|
||||||
OS::get_singleton()->set_environment("__GODOT_EDITOR_STOP_SHORTCUT__", shortcut);
|
OS::get_singleton()->set_environment("__GODOT_EDITOR_STOP_SHORTCUT__", shortcut);
|
||||||
|
|
||||||
printf("Running: %s", exec.utf8().get_data());
|
printf("Running: %s", exec.utf8().get_data());
|
||||||
|
|||||||
Reference in New Issue
Block a user