load_query now closes automatically

This commit is contained in:
Vukas Pajic
2022-07-22 08:20:06 +02:00
parent 2a019e8090
commit f9fe1607ff
@@ -634,6 +634,10 @@ class LoadQuery(Operator):
bl_label = "Load Query"
index: IntProperty()
def invoke(self, context, event):
close_operator_panel(event)
return self.execute(context)
def execute(self, context):
ifc_selector = context.scene.IfcSelectorProperties
ifc_selector.selector_query_syntax = ifc_selector.query_library[self.index].query