1
0
Fork 0

Fix not being able to remove empty theme overrides in the editor

This commit is contained in:
Michael Alexsander 2026-01-24 20:52:02 -03:00
parent 04249468d3
commit 810b377492
No known key found for this signature in database
GPG Key ID: A9C91EE110F4EABA
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}