bim.copy_text_to_clipboard - more detailed tooltip

Now it will show the text being copied (e.g. attribute name).
This commit is contained in:
Andrej730
2024-12-23 12:32:51 +05:00
parent 31069d6643
commit d0e2995a84
+4 -1
View File
@@ -1148,11 +1148,14 @@ class RevertClippingPlaneCut(bpy.types.Operator):
class CopyTextToClipboard(bpy.types.Operator):
bl_idname = "bim.copy_text_to_clipboard"
bl_label = "Copy Text To Clipboard"
bl_description = "Copy text to clipboard."
bl_options = set()
text: bpy.props.StringProperty(options={"SKIP_SAVE"})
@classmethod
def description(cls, context, properties):
return f"Copy text to clipboard: '{properties.text}'."
def execute(self, context):
context.window_manager.clipboard = self.text
return {"FINISHED"}