Merge pull request #118190 from Hrothdel/web-fix-poll-export

[Web] Fix `poll_export` changing current export_preset
This commit is contained in:
Thaddeus Crews
2026-05-22 19:24:18 -05:00
+5 -2
View File
@@ -624,11 +624,14 @@ bool EditorExportPlatformWeb::poll_export() {
if (preset.is_valid()) {
const bool debug = true;
// Throwaway variables to pass to `can_export`.
// Throwaway variables to pass to validation functions.
String err;
bool missing_templates;
if (can_export(preset, err, missing_templates, debug)) {
bool valid = has_valid_export_configuration(preset, err, missing_templates, debug) &&
has_valid_project_configuration(preset, err);
if (valid) {
if (server->is_listening()) {
remote_debug_state = REMOTE_DEBUG_STATE_SERVING;
} else {