aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_node.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-07-10 14:34:30 -0300
committerGitHub2016-07-10 14:34:30 -0300
commit8d9b73171ef2e500dc7e47e9373e602d0413a6ed (patch)
tree419df651bda0035abcaffb4c8e1845e15d4d9616 /tools/editor/editor_node.cpp
parente525a0387bb79d5302cff768e580302fce0cba8f (diff)
parent3dd4cf3fed549820bdfcf04647fd21636de1b33b (diff)
downloadgodot-8d9b73171ef2e500dc7e47e9373e602d0413a6ed.tar.gz
godot-8d9b73171ef2e500dc7e47e9373e602d0413a6ed.tar.zst
godot-8d9b73171ef2e500dc7e47e9373e602d0413a6ed.zip
Merge pull request #5385 from volzhs/autosave-android
Fix autosave when run on remote device
Diffstat (limited to '')
-rw-r--r--tools/editor/editor_node.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp
index 8a93cee0c..e33474b7c 100644
--- a/tools/editor/editor_node.cpp
+++ b/tools/editor/editor_node.cpp
@@ -2675,11 +2675,16 @@ void EditorNode::_menu_option_confirm(int p_option,bool p_confirmed) {
} break;
case RUN_PLAY_NATIVE: {
- _menu_option_confirm(RUN_STOP,true);
- emit_signal("play_pressed");
- editor_run.run_native_notify();
-
-
+
+ bool autosave = EDITOR_DEF("run/auto_save_before_running",true);
+ if (autosave) {
+ _menu_option_confirm(FILE_SAVE_SCENE, false);
+ }
+ if (run_native->is_deploy_debug_remote_enabled()){
+ _menu_option_confirm(RUN_STOP,true);
+ emit_signal("play_pressed");
+ editor_run.run_native_notify();
+ }
} break;
case RUN_SCENE_SETTINGS: {