summaryrefslogtreecommitdiffstats
path: root/editor/editor_autoload_settings.cpp
diff options
context:
space:
mode:
authorStanislav Labzyuk <stanislav.labzyuk@gmail.com>2023-07-23 19:19:40 +0200
committerStanislav Labzyuk <stanislav.labzyuk@gmail.com>2023-07-23 19:19:40 +0200
commit3462ecf2fb297ceaa79a00e5a9bfb13bd3a5be04 (patch)
tree8533110b663d8af69aa8614436ae52618e0942c0 /editor/editor_autoload_settings.cpp
parent6588a4a29af1621086feac0117d5d4d37af957fd (diff)
downloadredot-engine-3462ecf2fb297ceaa79a00e5a9bfb13bd3a5be04.tar.gz
Fix undo methods for DELETE in EditorAutoloadSettings
Diffstat (limited to 'editor/editor_autoload_settings.cpp')
-rw-r--r--editor/editor_autoload_settings.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/editor/editor_autoload_settings.cpp b/editor/editor_autoload_settings.cpp
index 7a1dc2e33b..7cfaf2eaeb 100644
--- a/editor/editor_autoload_settings.cpp
+++ b/editor/editor_autoload_settings.cpp
@@ -338,8 +338,7 @@ void EditorAutoloadSettings::_autoload_button_pressed(Object *p_item, int p_colu
undo_redo->add_do_property(ProjectSettings::get_singleton(), name, Variant());
undo_redo->add_undo_property(ProjectSettings::get_singleton(), name, GLOBAL_GET(name));
- undo_redo->add_undo_method(ProjectSettings::get_singleton(), "set_persisting", name, true);
- undo_redo->add_undo_method(ProjectSettings::get_singleton(), "set_order", order);
+ undo_redo->add_undo_method(ProjectSettings::get_singleton(), "set_order", name, order);
undo_redo->add_do_method(this, "update_autoload");
undo_redo->add_undo_method(this, "update_autoload");
@@ -795,8 +794,7 @@ void EditorAutoloadSettings::autoload_remove(const String &p_name) {
undo_redo->add_do_property(ProjectSettings::get_singleton(), name, Variant());
undo_redo->add_undo_property(ProjectSettings::get_singleton(), name, GLOBAL_GET(name));
- undo_redo->add_undo_method(ProjectSettings::get_singleton(), "set_persisting", name, true);
- undo_redo->add_undo_method(ProjectSettings::get_singleton(), "set_order", order);
+ undo_redo->add_undo_method(ProjectSettings::get_singleton(), "set_order", name, order);
undo_redo->add_do_method(this, "update_autoload");
undo_redo->add_undo_method(this, "update_autoload");