From 810b377492d07c8aecf985c2317a144bf1665b5b Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Sat, 24 Jan 2026 20:52:02 -0300 Subject: [PATCH] Fix not being able to remove empty theme overrides in the editor --- editor/scene/gui/theme_editor_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/scene/gui/theme_editor_plugin.cpp b/editor/scene/gui/theme_editor_plugin.cpp index 9e5a089e964..557845f4255 100644 --- a/editor/scene/gui/theme_editor_plugin.cpp +++ b/editor/scene/gui/theme_editor_plugin.cpp @@ -3072,7 +3072,7 @@ void ThemeTypeEditor::_item_add_lineedit_cbk(String p_value, int p_data_type, Co void ThemeTypeEditor::_item_override_cbk(int p_data_type, String p_item_name) { // Avoid errors if the action is triggered multiple times. - if (edited_theme->has_theme_item((Theme::DataType)p_data_type, p_item_name, edited_type)) { + if (edited_theme->has_theme_item_nocheck((Theme::DataType)p_data_type, p_item_name, edited_type)) { return; } @@ -3116,7 +3116,7 @@ void ThemeTypeEditor::_item_override_cbk(int p_data_type, String p_item_name) { void ThemeTypeEditor::_item_remove_cbk(int p_data_type, String p_item_name) { // Avoid errors if the action is triggered multiple times. - if (!edited_theme->has_theme_item((Theme::DataType)p_data_type, p_item_name, edited_type)) { + if (!edited_theme->has_theme_item_nocheck((Theme::DataType)p_data_type, p_item_name, edited_type)) { return; }