UI: Rename and put Reset Recent to a menu #112853

Merged
Pablo Vazquez merged 2 commits from persun/blender:change_reset_recent into main 2023-09-25 15:16:01 +02:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit bdaf371207 - Show all commits

View File

@ -327,8 +327,8 @@ class FILEBROWSER_PT_bookmarks_favorites(FileBrowserPanel, Panel):
layout.operator("file.bookmark_add", icon='ADD')
class FILEBROWSER_MT_bookmarks_recents_context_menu(Menu):
bl_label = "Recent Directories Specials"
class FILEBROWSER_MT_bookmarks_recents_specials_menu(Menu):
persun marked this conversation as resolved Outdated

This is not actually a context menu so maybe just call it specials? FILEBROWSER_MT_bookmarks_recents_specials_menu

This is not actually a context menu so maybe just call it specials? `FILEBROWSER_MT_bookmarks_recents_specials_menu`
bl_label = "Recent Items Specials"
persun marked this conversation as resolved Outdated

Recent Items Specials, since it can also be drives or network locations that are not regular directories.

`Recent Items Specials`, since it can also be drives or network locations that are not regular directories.
def draw(self, _context):
layout = self.layout
@ -360,7 +360,7 @@ class FILEBROWSER_PT_bookmarks_recents(Panel):
space, "recent_folders_active", item_dyntip_propname="path", rows=1, maxrows=10)
col = row.column(align=True)
col.menu("FILEBROWSER_MT_bookmarks_recents_context_menu", icon='DOWNARROW_HLT', text="")
col.menu("FILEBROWSER_MT_bookmarks_recents_specials_menu", icon='DOWNARROW_HLT', text="")
class FILEBROWSER_PT_advanced_filter(Panel):
@ -862,7 +862,7 @@ classes = (
FILEBROWSER_PT_bookmarks_favorites,
FILEBROWSER_PT_bookmarks_system,
FILEBROWSER_PT_bookmarks_volumes,
FILEBROWSER_MT_bookmarks_recents_context_menu,
FILEBROWSER_MT_bookmarks_recents_specials_menu,
FILEBROWSER_PT_bookmarks_recents,
FILEBROWSER_PT_advanced_filter,
FILEBROWSER_PT_directory_path,