Add missing handler for removing font sizes in Themes
(cherry picked from commit 5a3dbea3ed
)
This commit is contained in:
parent
a41a813af4
commit
84e9a79ace
@ -2952,6 +2952,10 @@ void ThemeTypeEditor::_item_remove_cbk(int p_data_type, String p_item_name) {
|
||||
ur->add_undo_method(*edited_theme, "set_font", p_item_name, edited_type, Ref<Font>());
|
||||
}
|
||||
} break;
|
||||
case Theme::DATA_TYPE_FONT_SIZE: {
|
||||
ur->add_do_method(*edited_theme, "clear_font_size", p_item_name, edited_type);
|
||||
ur->add_undo_method(*edited_theme, "set_font_size", p_item_name, edited_type, edited_theme->get_font_size(p_item_name, edited_type));
|
||||
} break;
|
||||
case Theme::DATA_TYPE_ICON: {
|
||||
ur->add_do_method(*edited_theme, "clear_icon", p_item_name, edited_type);
|
||||
if (edited_theme->has_icon(p_item_name, edited_type)) {
|
||||
|
Loading…
Reference in New Issue
Block a user