Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_operators/userpref.py
| Context not available. | |||||
| if os.path.isfile(filepath_final): | if os.path.isfile(filepath_final): | ||||
| if not self.ask_overide: | if not self.ask_overide: | ||||
| self.ask_overide = True | self.ask_overide = True | ||||
| return wm.invoke_props_dialog(self, width=600) | return wm.invoke_props_dialog(self, width=320) | ||||
| else: | else: | ||||
| for studio_light in prefs.studio_lights: | for studio_light in prefs.studio_lights: | ||||
| if studio_light.name == filename: | if studio_light.name == filename: | ||||
| Context not available. | |||||
| def invoke(self, context, _event): | def invoke(self, context, _event): | ||||
| wm = context.window_manager | wm = context.window_manager | ||||
| return wm.invoke_props_dialog(self, width=600) | return wm.invoke_props_dialog(self, width=280) | ||||
| class PREFERENCES_OT_studiolight_uninstall(Operator): | class PREFERENCES_OT_studiolight_uninstall(Operator): | ||||
| Context not available. | |||||