From 05ff82e8bbcc437f56df3d6e1c8e053f8ffd1a74 Mon Sep 17 00:00:00 2001 From: Duduf Date: Wed, 17 May 2023 13:03:40 +0200 Subject: [PATCH] Add a bug report/feature request button in the settings of the addon --- dublast/preferences.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dublast/preferences.py b/dublast/preferences.py index 35bf7b4..9bc35d9 100644 --- a/dublast/preferences.py +++ b/dublast/preferences.py @@ -36,6 +36,10 @@ class DUBLAST_UpdateBox(dublf.ops.UpdateBox): addonName = __package__ openURLOp = DUBLAST_OpenURL.bl_idname +class DUBLAST_OT_ReportIssue( dublf.ops.DUBLF_OT_ReportIssue ): + bl_idname = "dublast.reportissue" + addonName = __package__ + class DUBLAST_Preferences( bpy.types.AddonPreferences ): bl_idname = __package__ @@ -53,6 +57,7 @@ def draw(self, context): layout = self.layout layout.prop(self, "check_updates") layout.operator("dublast.updatebox", text="Check for updates now") + layout.operator("dublast.reportissue") @persistent def checkUpdateHandler(arg1, arg2): @@ -61,6 +66,7 @@ def checkUpdateHandler(arg1, arg2): classes = ( DUBLAST_OpenURL, DUBLAST_UpdateBox, + DUBLAST_OT_ReportIssue, DUBLAST_Preferences, )