Fix T90317: Confusing File Browser Preferences
Preferences / File Browser section made less confusing. See D12436 for details and comparisons. Differential Revision: https://developer.blender.org/D12436 Reviewed by Campbell Barton and Julian Eisel
This commit is contained in:
parent
84d03a1298
commit
efcf46fb6d
Notes:
blender-bot
2023-02-14 11:07:28 +01:00
Referenced by issue #90317, .Dot files and Folders keep showing OSX and Windows
|
@ -1455,13 +1455,11 @@ class USERPREF_PT_saveload_file_browser(SaveLoadPanel, CenterAlignMixIn, Panel):
|
|||
prefs = context.preferences
|
||||
paths = prefs.filepaths
|
||||
|
||||
col = layout.column()
|
||||
col = layout.column(heading="Defaults")
|
||||
col.prop(paths, "use_filter_files")
|
||||
|
||||
col = layout.column(heading="Hide")
|
||||
col.prop(paths, "show_hidden_files_datablocks", text="Dot File & Data-Blocks")
|
||||
col.prop(paths, "hide_recent_locations", text="Recent Locations")
|
||||
col.prop(paths, "hide_system_bookmarks", text="System Bookmarks")
|
||||
col.prop(paths, "show_hidden_files_datablocks")
|
||||
col.prop(paths, "show_recent_locations")
|
||||
col.prop(paths, "show_system_bookmarks")
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
@ -6073,26 +6073,25 @@ static void rna_def_userdef_filepaths(BlenderRNA *brna)
|
|||
RNA_def_struct_ui_text(srna, "File Paths", "Default paths for external files");
|
||||
|
||||
prop = RNA_def_property(srna, "show_hidden_files_datablocks", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_HIDE_DOT);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "uiflag", USER_HIDE_DOT);
|
||||
RNA_def_property_ui_text(prop,
|
||||
"Hide Dot Files/Data-Blocks",
|
||||
"Hide files and data-blocks if their name start with a dot (.*)");
|
||||
"Show Hidden Files/Data-Blocks",
|
||||
"Show files and data-blocks that are normally hidden");
|
||||
|
||||
prop = RNA_def_property(srna, "use_filter_files", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_FILTERFILEEXTS);
|
||||
RNA_def_property_ui_text(prop,
|
||||
"Filter File Extensions",
|
||||
"Display only files with extensions in the image select window");
|
||||
|
||||
prop = RNA_def_property(srna, "hide_recent_locations", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_HIDE_RECENT);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Hide Recent Locations", "Hide recent locations in the file selector");
|
||||
prop, "Filter Files", "Enable filtering of files in the File Browser");
|
||||
|
||||
prop = RNA_def_property(srna, "hide_system_bookmarks", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_HIDE_SYSTEM_BOOKMARKS);
|
||||
prop = RNA_def_property(srna, "show_recent_locations", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "uiflag", USER_HIDE_RECENT);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Hide System Bookmarks", "Hide system bookmarks in the file selector");
|
||||
prop, "Show Recent Locations", "Show Recent locations list in the File Browser");
|
||||
|
||||
prop = RNA_def_property(srna, "show_system_bookmarks", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "uiflag", USER_HIDE_SYSTEM_BOOKMARKS);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Show System Locations", "Show System locations list in the File Browser");
|
||||
|
||||
prop = RNA_def_property(srna, "use_relative_paths", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", USER_RELPATHS);
|
||||
|
|
Loading…
Reference in New Issue