Cleanup: Make format

This commit is contained in:
Hans Goudey 2024-03-28 20:55:23 -04:00
parent f62f8852dc
commit e6808cd558
2 changed files with 3 additions and 1 deletions

View File

@ -78,6 +78,7 @@ class ShaderScriptImport(bpy.types.Operator, ImportHelper):
If filepath information is not provided the file select window will be invoked instead.
"""
def invoke(self, context, event):
return self.invoke_popup(context)

View File

@ -116,7 +116,8 @@ class ImportHelper:
confirm_text = self.bl_label
confirm_text = iface_(confirm_text)
return context.window_manager.invoke_props_dialog(self, confirm_text=confirm_text, title=title, translate=False)
return context.window_manager.invoke_props_dialog(
self, confirm_text=confirm_text, title=title, translate=False)
context.window_manager.fileselect_add(self)
return {'RUNNING_MODAL'}