From 610e334d4ca4bf1d998e63ab22e478cd60905e55 Mon Sep 17 00:00:00 2001 From: Leonard Pop Date: Sat, 4 Apr 2026 18:04:51 +0300 Subject: [PATCH] [Web] Fix poll_export changing current export_preset --- platform/web/export/export_plugin.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platform/web/export/export_plugin.cpp b/platform/web/export/export_plugin.cpp index f495a821a9..d204268272 100644 --- a/platform/web/export/export_plugin.cpp +++ b/platform/web/export/export_plugin.cpp @@ -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 {