1. The Install and Enable were "Show Only", but the label was saying
only "Show". We now split Show and Only in two sections.
2. The logic for when enable/installed would be active was flipped.
Designed together with Pablo Vazquez.
* 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.
Remove a hack that used a popover panel to invoke an operator.
This was needed because drop ran from bpy.app.handlers.
Instead, activate the install operators from the drop action.
Resolvesblender/blender#119500
- Show extension name.
- Show extension type.
- Show repository name.
- Show size without a decimal point.
- Use separator to differentiate the title from the popup contents.
The previous reports display can be enabled as a debugging option
since reports flatten errors from different processes which can make
them more difficult to follow.
This was possible to do with add-ons so support it for extensions too.
Otherwise users are forced to navigate to the extension directory
with a file manager and manually remove which is inconvenient.
The selection of repositories is awkward as selecting the destination
repo triggers installation instead of using an "OK" button.
I'll look into further improvements for the UI that can be used for
both filepath & URL dropping.
- Remove unused operator.
- Rename "Repository" to "Local Repository" when installing from disk.
- Make the URL hidden (so the UI can be exposed in the future without
showing the full URL).
Remove repeated icon (Install Legacy Add-on).
Re-arrange the filter menu.
I was expecting the "Show" to be in-lined with the items.
But maybe this does not work for popups?
This is a bit of a hack, but not sure if we have a better way to
implement this at the moment.
The idea is that an installed extension checkbox should look different
than a not installed one, since you cannot enable/disable the latter.
Ref: !25
While errors caused by updating / installing could be dismissed
any errors that occurred while reading repository data for drawing
were always displayed.
Now errors encountered while drawing are displayed in a single
box with the option to dismiss it.
Any changes to the errors will show the errors again.
- Show inactive disabled checkbox for non-installed extensions.
- Show inactive enabled checkbox for installed non-add-ons extensions.
They cannot be disabled for now, use a place-holder operator.
Part of #117841.
Internally separator_spacer(..) assume they're displayed in a header,
this meant zooming in would push the layout to the right (under the
scroll bar) use a simple spacer to simplify layout calculation.
The add-ons preferences is now shown as extensions, this UI
now replaces add-ons.
- Show add-ons along side extensions, following the existing extensions
UI.
- Add-no "Install" has been added to the menu (noting that it's Legacy).