diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-09-16 19:14:23 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-09-16 19:25:31 +0300 |
commit | 8d6b0eda5db45b63de8fccea1e3af41bf0bf09e0 (patch) | |
tree | 2f49c918125a63460b3878346425efcd44b799c4 /source/blender/windowmanager/intern | |
parent | 3618b2c3599d172cad3e0ee3fa7bd0eb886771a2 (diff) |
UI: Show in-/decrement buttons for exporters
As per Brecht's suggestion, use the check_existing property to control
visibility of the '+' and '-' icons. It is typically set for save
operations.
Adds another FileSelectParams flag (to avoid duplicated propertie
lookups) and removes the recently introduced
FileSelectParams.action_type again.
Fixes T69881.
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operator_props.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source/blender/windowmanager/intern/wm_operator_props.c b/source/blender/windowmanager/intern/wm_operator_props.c index 04775a7a880..a8feb22cbf8 100644 --- a/source/blender/windowmanager/intern/wm_operator_props.c +++ b/source/blender/windowmanager/intern/wm_operator_props.c @@ -78,15 +78,6 @@ void WM_operator_properties_filesel(wmOperatorType *ot, {FILE_IMGDISPLAY, "THUMBNAIL", ICON_IMGDISPLAY, "Thumbnails", "Display files as thumbnails"}, {0, NULL, 0, NULL, NULL}, }; - static const EnumPropertyItem file_action_types[] = { - {FILE_OPENFILE, - "OPENFILE", - 0, - "Open", - "Use the file browser for opening files or a directory"}, - {FILE_SAVE, "SAVE", 0, "Save", "Use the file browser for saving a file"}, - {0, NULL, 0, NULL, NULL}, - }; if (flag & WM_FILESEL_FILEPATH) { RNA_def_string_file_path(ot->srna, "filepath", NULL, FILE_MAX, "File Path", "Path to file"); @@ -207,9 +198,6 @@ void WM_operator_properties_filesel(wmOperatorType *ot, prop = RNA_def_enum( ot->srna, "sort_method", rna_enum_file_sort_items, sort, "File sorting mode", ""); RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); - - prop = RNA_def_enum(ot->srna, "action_type", file_action_types, action, "Action Type", ""); - RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); } static void wm_operator_properties_select_action_ex(wmOperatorType *ot, |