From ba9e026291a1bcd39dd6c67f686edd092c7c519e Mon Sep 17 00:00:00 2001 From: doc-code Date: Mon, 26 Aug 2024 16:00:08 +0200 Subject: [PATCH] Removed custom separator in favor of simple separator --- addon/classes/draw.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/addon/classes/draw.py b/addon/classes/draw.py index 768fb8d..2ec5b32 100644 --- a/addon/classes/draw.py +++ b/addon/classes/draw.py @@ -1,17 +1,12 @@ from .. import __package__ as base_package import bpy -def draw_addon_separator(layout): - layout.separator() - layout.label(text="Custom Templates") - layout.separator() - def draw_file_new_templates(self, context): layout = self.layout prefs = context.preferences.addons[base_package].preferences if len(prefs.projects) > 0: - draw_addon_separator(layout) + layout.separator() draw_templates_on_col(layout, context) def draw_templates_on_col(layout, context, splash_mode = False): @@ -23,7 +18,7 @@ def draw_templates_on_col(layout, context, splash_mode = False): def draw_file_default_operators(self, context): layout = self.layout - draw_addon_separator(layout) + layout.separator() # Manage Template layout.operator("custom_templates.open_preferences", text="Manage templates")