Skip to content

Commit

Permalink
Merge pull request #94425 from m4gr3d/fix_remote_android_button_not_e…
Browse files Browse the repository at this point in the history
…nabling

Fix issue preventing enabling the remote button for Android/iOS
  • Loading branch information
akien-mga committed Jul 17, 2024
2 parents 59737bf + 5b327ae commit 7b12dbd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/editor_run_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ void EditorRunNative::_notification(int p_what) {
for (int j = 0; j < EditorExport::get_singleton()->get_export_platform_count(); j++) {
if (eep->get_name() == EditorExport::get_singleton()->get_export_platform(j)->get_name()) {
platform_idx = j;
break;
}
}
int dc = MIN(eep->get_options_count(), 9000);
bool needs_templates;
String error;
if (dc > 0 && preset->is_runnable() && eep->can_export(preset, error, needs_templates)) {
if (dc > 0 && preset->is_runnable()) {
popup->add_icon_item(eep->get_run_icon(), eep->get_name(), -1);
popup->set_item_disabled(-1, true);
for (int j = 0; j < dc; j++) {
Expand Down
1 change: 1 addition & 0 deletions platform/android/export/export_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ void EditorExportPlatformAndroid::_update_preset_status() {
} else {
has_runnable_preset.clear();
}
devices_changed.set();
}
#endif

Expand Down
1 change: 1 addition & 0 deletions platform/ios/export/export_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2971,6 +2971,7 @@ void EditorExportPlatformIOS::_update_preset_status() {
} else {
has_runnable_preset.clear();
}
devices_changed.set();
}
#endif

Expand Down

0 comments on commit 7b12dbd

Please sign in to comment.