bim.open_uri - display url in description

This commit is contained in:
Andrej730
2025-01-24 12:49:18 +05:00
parent 65f2da4beb
commit d979c6a044
+4 -1
View File
@@ -82,9 +82,12 @@ class SwitchTab(bpy.types.Operator):
class OpenUri(bpy.types.Operator):
bl_idname = "bim.open_uri"
bl_label = "Open URI"
bl_description = "Open the URL in your Web Browser"
uri: bpy.props.StringProperty()
@classmethod
def description(cls, context, properties):
return f"Open the URL in your Web Browser: '{properties.uri}'."
def execute(self, context):
webbrowser.open(self.uri)
return {"FINISHED"}