[Bf-blender-cvs] [fb9243787be] master: Fix too narrow buttons in addon preferences.

Brecht Van Lommel noreply at git.blender.org
Wed Jan 16 19:32:46 CET 2019


Commit: fb9243787be8c4467841709dd47560e5313caafc
Author: Brecht Van Lommel
Date:   Wed Jan 16 19:32:10 2019 +0100
Branches: master
https://developer.blender.org/rBfb9243787be8c4467841709dd47560e5313caafc

Fix too narrow buttons in addon preferences.

===================================================================

M	release/scripts/startup/bl_ui/space_userpref.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index 427bdd78ea5..b01144dc3bd 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -1816,27 +1816,25 @@ class USERPREF_PT_addons(Panel):
                     if tot_row:
                         split = colsub.row().split(factor=0.15)
                         split.label(text="Internet:")
+                        sub = split.row()
                         if info["wiki_url"]:
-                            split.operator(
+                            sub.operator(
                                 "wm.url_open", text="Documentation", icon='HELP',
                             ).url = info["wiki_url"]
                         # Only add "Report a Bug" button if tracker_url is set
                         # or the add-on is bundled (use official tracker then).
                         if info.get("tracker_url") or not user_addon:
-                            split.operator(
+                            sub.operator(
                                 "wm.url_open", text="Report a Bug", icon='URL',
                             ).url = info.get(
                                 "tracker_url",
                                 "https://developer.blender.org/maniphest/task/edit/form/2",
                             )
                         if user_addon:
-                            split.operator(
+                            sub.operator(
                                 "wm.addon_remove", text="Remove", icon='CANCEL',
                             ).module = mod.__name__
 
-                        for _ in range(4 - tot_row):
-                            split.separator()
-
                     # Show addon user preferences
                     if is_enabled:
                         addon_preferences = prefs.addons[module_name].preferences



More information about the Bf-blender-cvs mailing list