1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Move advanced toggle state out of export presets

This commit is contained in:
kobewi
2025-08-06 15:50:03 +02:00
parent c81fd6c512
commit 744484b6dd
4 changed files with 8 additions and 19 deletions

View File

@@ -31,6 +31,7 @@
#include "editor_export.h"
#include "core/config/project_settings.h"
#include "editor/settings/editor_settings.h"
bool EditorExportPreset::_set(const StringName &p_name, const Variant &p_value) {
values[p_name] = p_value;
@@ -316,17 +317,8 @@ bool EditorExportPreset::is_runnable() const {
return runnable;
}
void EditorExportPreset::set_advanced_options_enabled(bool p_enabled) {
if (advanced_options_enabled == p_enabled) {
return;
}
advanced_options_enabled = p_enabled;
EditorExport::singleton->save_presets();
notify_property_list_changed();
}
bool EditorExportPreset::are_advanced_options_enabled() const {
return advanced_options_enabled;
return EDITOR_GET("_export_preset_advanced_mode");
}
void EditorExportPreset::set_dedicated_server(bool p_enable) {