Skip to content

Commit

Permalink
Add a bug report/feature request button in the settings of the addon
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Duduf committed May 17, 2023
1 parent 006e3f3 commit 05ff82e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dublast/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__

Expand All @@ -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):
Expand All @@ -61,6 +66,7 @@ def checkUpdateHandler(arg1, arg2):
classes = (
DUBLAST_OpenURL,
DUBLAST_UpdateBox,
DUBLAST_OT_ReportIssue,
DUBLAST_Preferences,
)

Expand Down

0 comments on commit 05ff82e

Please sign in to comment.