UI: Extensions: Add a separator between Install and the "⌄" button

It was too easy to click on Install by mistake, while trying to click on
the "⌄" menu. This is particulary problematic since we enable add-ons by
default.

Co-authored by: Pablo Vazquez, based on (informal) report by Campbell Barton.
This commit is contained in:
Dalai Felinto
2024-06-27 12:06:53 +02:00
parent b802f146e6
commit c6e452d865

View File

@@ -1188,6 +1188,7 @@ def extension_draw_item(
row_right = row_right_toplevel.row(align=True)
row_right.alignment = 'RIGHT'
row_right.separator()
# Used `extension_path` so the menu can access "this" extension.
row_right.context_string_set("extension_path", "{:s}.{:s}".format(repo_item.module, pkg_id))