You've already forked godot
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user