Extensions: User Interface

* Make "Repositories" more accessible.
* Unify all the "Install" operators.

This commit addresses some feedback regarding being hard to setup
repositories since they were on the corner of the panel, and get easily
dismissable while travelling there with the mouse.

It then touches on the topic of discoverability of this feature, and
re-organize the extensions Operators dropdown menu.

Repositories
-----------
Repositories was accessible via the "preferences" icon. This icon (a cog)
is used already on the File Browser as a toggle to expand the side panel.
Here it had no label, thus no correlation between the button and what it did
(Repositories).

Instead this commit adds a Repository entry to the extensions operators
dropdown menu.

Install
-------
The "Update All" entry wasn't clear enough. It has been renamed to
Install Available Updates and grouped together with the other Install
operators.

--
Designed together with Pablo Vazquez.
This commit is contained in:
Dalai Felinto
2024-04-12 16:47:23 +02:00
parent 98c9f50dae
commit d5862549d3

View File

@ -614,12 +614,16 @@ class USERPREF_MT_extensions_bl_pkg_settings(Menu):
addon_prefs = context.preferences.addons[__package__].preferences
layout.operator("bl_pkg.repo_sync_all", text="Check for Updates", icon='FILE_REFRESH')
layout.operator("bl_pkg.pkg_upgrade_all", text="Update All", icon='IMPORT')
layout.popover("USERPREF_PT_extensions_repos", text="Repositories")
layout.separator()
layout.operator("bl_pkg.pkg_install_files", icon='IMPORT', text="Install from Disk")
layout.operator("bl_pkg.repo_sync_all", text="Check for Updates", icon='FILE_REFRESH')
layout.separator()
layout.operator("bl_pkg.pkg_upgrade_all", text="Install Available Updates", icon='IMPORT')
layout.operator("bl_pkg.pkg_install_files", text="Install from Disk")
layout.operator("preferences.addon_install", text="Install Legacy Add-on")
if context.preferences.experimental.use_extension_utils:
@ -673,7 +677,6 @@ def extensions_panel_draw(panel, context):
row_b.separator()
row_b.menu("USERPREF_MT_extensions_bl_pkg_settings", text="", icon='DOWNARROW_HLT')
row_b.popover("USERPREF_PT_extensions_repos", text="", icon='PREFERENCES')
del row, row_a, row_b
if show_development_reports: