Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-16 21:32:10 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-16 21:32:10 +0300
commitfb9243787be8c4467841709dd47560e5313caafc (patch)
treea33296f869420c0aabb18912043a57768bbfce1d /release
parentc1762b1a085246a29f532b24463a236f347b7dd1 (diff)
Fix too narrow buttons in addon preferences.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_userpref.py10
1 files changed, 4 insertions, 6 deletions
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