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
Contributor

Put File Browser's Reset Recent into a menu to reduce accidental click of the destructive operation.

Also rename it to Clear Recent Items to make its function more clear.

Current PR
reset_recent_current.png reset_recent_pr.png

(Initially I was thinking about simply changing the icon from the X to the trash bin, but as @pablovazquez 's suggested this would be a better way to prevent misclicks.)

Put File Browser's `Reset Recent` into a menu to reduce accidental click of the destructive operation. Also rename it to `Clear Recent Items` to make its function more clear. | Current | PR | |--|--| |![reset_recent_current.png](/attachments/a81c90ee-44f7-42fd-9487-60f1b4a5f751)|![reset_recent_pr.png](/attachments/2e72e3ca-1afc-4f5a-8690-5e43a6eca9f0)| (Initially I was thinking about simply changing the icon from the X to the trash bin, but as @pablovazquez 's suggested this would be a better way to prevent misclicks.)
Sun Kim added 1 commit 2023-09-25 14:55:36 +02:00
9de2e1e755 UI: Rename and put Reset Recent to a menu
Put Reset Recent into a menu to reduce accidental click of the destructive operation.

Also rename it to Clear Recent Items to make its function more clear.
Iliya Katushenock added this to the User Interface project 2023-09-25 14:59:42 +02:00
Pablo Vazquez requested changes 2023-09-25 15:03:41 +02:00
@ -327,6 +327,15 @@ class FILEBROWSER_PT_bookmarks_favorites(FileBrowserPanel, Panel):
layout.operator("file.bookmark_add", icon='ADD')
class FILEBROWSER_MT_bookmarks_recents_context_menu(Menu):
Member

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`
persun marked this conversation as resolved
@ -328,2 +328,4 @@
class FILEBROWSER_MT_bookmarks_recents_context_menu(Menu):
bl_label = "Recent Directories Specials"
Member

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.
persun marked this conversation as resolved
Sun Kim added 1 commit 2023-09-25 15:10:06 +02:00
Pablo Vazquez added the
Module
User Interface
label 2023-09-25 15:12:00 +02:00
Pablo Vazquez approved these changes 2023-09-25 15:12:31 +02:00
Pablo Vazquez merged commit 90d8a07213 into main 2023-09-25 15:16:01 +02:00
Pablo Vazquez deleted branch change_reset_recent 2023-09-25 15:16:02 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#112853
No description provided.