mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Disable Android devices mirroring for the Android editor
This commit is contained in:
parent
7ed0b61676
commit
74d80f485c
2 changed files with 12 additions and 7 deletions
|
|
@ -2264,6 +2264,7 @@ bool EditorExportPlatformAndroid::should_update_export_options() {
|
|||
return false;
|
||||
}
|
||||
|
||||
#ifndef ANDROID_ENABLED
|
||||
bool EditorExportPlatformAndroid::poll_export() {
|
||||
bool dc = devices_changed.is_set();
|
||||
if (dc) {
|
||||
|
|
@ -2589,6 +2590,7 @@ Error EditorExportPlatformAndroid::run(const Ref<EditorExportPreset> &p_preset,
|
|||
CLEANUP_AND_RETURN(OK);
|
||||
#undef CLEANUP_AND_RETURN
|
||||
}
|
||||
#endif // ANDROID_ENABLED
|
||||
|
||||
Ref<Texture2D> EditorExportPlatformAndroid::get_run_icon() const {
|
||||
return run_icon;
|
||||
|
|
@ -4369,18 +4371,18 @@ void EditorExportPlatformAndroid::initialize() {
|
|||
ImageLoaderSVG::create_image_from_string(img, _android_run_icon_svg, EDSCALE, upsample, false);
|
||||
run_icon = ImageTexture::create_from_image(img);
|
||||
|
||||
devices_changed.set();
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
android_plugins_changed.set();
|
||||
#endif // DISABLE_DEPRECATED
|
||||
#ifndef ANDROID_ENABLED
|
||||
devices_changed.set();
|
||||
_create_editor_debug_keystore_if_needed();
|
||||
_update_preset_status();
|
||||
check_for_changes_thread.start(_check_for_changes_poll_thread, this);
|
||||
#else
|
||||
android_editor_gradle_runner = memnew(AndroidEditorGradleRunner);
|
||||
#endif
|
||||
use_scrcpy = EditorSettings::get_singleton()->get_project_metadata("android", "use_scrcpy", false);
|
||||
#else // ANDROID_ENABLED
|
||||
android_editor_gradle_runner = memnew(AndroidEditorGradleRunner);
|
||||
#endif // ANDROID_ENABLED
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue