Merge pull request #74547 from YuriSizov/theme-wait-you-dropped-font-size
Add missing handler for removing font sizes in Themes
This commit is contained in:
commit
540c8eb095
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue