mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Remove operator's name from set_tab tooltip #3704
This commit is contained in:
@@ -42,13 +42,15 @@ from math import radians
|
|||||||
|
|
||||||
class SetTab(bpy.types.Operator):
|
class SetTab(bpy.types.Operator):
|
||||||
bl_idname = "bim.set_tab"
|
bl_idname = "bim.set_tab"
|
||||||
bl_label = "Set Current Tab"
|
# NOTE: bl_label is set to empty string intentionally
|
||||||
bl_options = {"REGISTER", "UNDO"}
|
# to avoid showing the operator's name in the tooltips, see #3704
|
||||||
|
bl_label = ""
|
||||||
|
bl_options = {"REGISTER", "UNDO", "HIDDEN"}
|
||||||
tab: bpy.props.StringProperty()
|
tab: bpy.props.StringProperty()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def description(cls, context, properties):
|
def description(cls, context, operator):
|
||||||
return next((t[1] for t in blenderbim.bim.prop.get_tab(None, context) if t[0] == properties.tab), "")
|
return next((t[1] for t in blenderbim.bim.prop.get_tab(None, context) if t[0] == operator.tab), "")
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
if context.area.spaces.active.search_filter:
|
if context.area.spaces.active.search_filter:
|
||||||
|
|||||||
Reference in New Issue
Block a user