diff --git a/editor/export/export_template_manager.cpp b/editor/export/export_template_manager.cpp index 12869b1f891..a8ea9495961 100644 --- a/editor/export/export_template_manager.cpp +++ b/editor/export/export_template_manager.cpp @@ -57,9 +57,6 @@ enum DownloadsAvailability { static DownloadsAvailability _get_downloads_availability() { const int network_mode = EDITOR_GET("network/connection/network_mode"); - if (network_mode == EditorSettings::NETWORK_OFFLINE) { - return DOWNLOADS_NOT_AVAILABLE_IN_OFFLINE_MODE; - } // Downloadable export templates are only available for stable and official alpha/beta/RC builds // (which always have a number following their status, e.g. "alpha1"). @@ -72,6 +69,10 @@ static DownloadsAvailability _get_downloads_availability() { return DOWNLOADS_NOT_AVAILABLE_FOR_DEV_BUILDS; } + if (network_mode == EditorSettings::NETWORK_OFFLINE) { + return DOWNLOADS_NOT_AVAILABLE_IN_OFFLINE_MODE; + } + return DOWNLOADS_AVAILABLE; } diff --git a/editor/export/export_template_manager.h b/editor/export/export_template_manager.h index 5939c68fdfc..a6e103dc137 100644 --- a/editor/export/export_template_manager.h +++ b/editor/export/export_template_manager.h @@ -37,7 +37,6 @@ class EditorExportPreset; class ExportTemplateVersion; class FileDialog; class HTTPRequest; -class LinkButton; class MenuButton; class OptionButton; class ProgressBar;