diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-09 18:06:28 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-09 18:06:28 +0100 |
commit | 75d27e38937b0fe3649ef28156a5fae70a58719b (patch) | |
tree | 4268c5e5baf25a44c18aae8f11d7ff13765ad9b1 /editor/editor_autoload_settings.cpp | |
parent | 460dd9fdb7a3aa9865dec344c2b54a7b93f4bb83 (diff) | |
parent | 3462ecf2fb297ceaa79a00e5a9bfb13bd3a5be04 (diff) | |
download | redot-engine-75d27e38937b0fe3649ef28156a5fae70a58719b.tar.gz |
Merge pull request #79832 from DarkMessiah/fix-autoload-settings
Fix undo methods for DELETE in EditorAutoloadSettings
Diffstat (limited to 'editor/editor_autoload_settings.cpp')
-rw-r--r-- | editor/editor_autoload_settings.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editor/editor_autoload_settings.cpp b/editor/editor_autoload_settings.cpp index 6658669d66..be05bfea68 100644 --- a/editor/editor_autoload_settings.cpp +++ b/editor/editor_autoload_settings.cpp @@ -339,8 +339,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"); @@ -796,8 +795,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"); |