Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_filebrowser.py
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| bl_space_type = 'FILE_BROWSER' | bl_space_type = 'FILE_BROWSER' | ||||
| bl_region_type = 'TOOLS' | bl_region_type = 'TOOLS' | ||||
| bl_category = "Bookmarks" | bl_category = "Bookmarks" | ||||
| bl_label = "System" | bl_label = "System" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return ( | return ( | ||||
| not context.preferences.filepaths.hide_system_bookmarks and | context.preferences.filepaths.show_system_bookmarks and | ||||
| panel_poll_is_upper_region(context.region) and | panel_poll_is_upper_region(context.region) and | ||||
| not panel_poll_is_asset_browsing(context) | not panel_poll_is_asset_browsing(context) | ||||
| ) | ) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| space = context.space_data | space = context.space_data | ||||
| ▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
| bl_space_type = 'FILE_BROWSER' | bl_space_type = 'FILE_BROWSER' | ||||
| bl_region_type = 'TOOLS' | bl_region_type = 'TOOLS' | ||||
| bl_category = "Bookmarks" | bl_category = "Bookmarks" | ||||
| bl_label = "Recent" | bl_label = "Recent" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return ( | return ( | ||||
| not context.preferences.filepaths.hide_recent_locations and | context.preferences.filepaths.show_recent_locations and | ||||
| panel_poll_is_upper_region(context.region) and | panel_poll_is_upper_region(context.region) and | ||||
| not panel_poll_is_asset_browsing(context) | not panel_poll_is_asset_browsing(context) | ||||
| ) | ) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| space = context.space_data | space = context.space_data | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||