Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_operators/wm.py
| Show First 20 Lines • Show All 3,077 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.separator(factor=2.0) | layout.separator(factor=2.0) | ||||
| # Save settings buttons. | # Save settings buttons. | ||||
| sub = layout.row() | sub = layout.row() | ||||
| old_version = bpy.types.PREFERENCES_OT_copy_prev.previous_version() | old_version = bpy.types.PREFERENCES_OT_copy_prev.previous_version() | ||||
| if bpy.types.PREFERENCES_OT_copy_prev.poll(context) and old_version: | if bpy.types.PREFERENCES_OT_copy_prev.poll(context) and old_version: | ||||
| sub.operator("preferences.copy_prev", text=iface_("Load %d.%d Settings", "Operator") % old_version, translate=False) | sub.operator( | ||||
| "preferences.copy_prev", | |||||
| text=iface_( | |||||
| "Load %d.%d Settings", | |||||
| "Operator") % | |||||
| old_version, | |||||
| translate=False) | |||||
| sub.operator("wm.save_userpref", text="Save New Settings") | sub.operator("wm.save_userpref", text="Save New Settings") | ||||
| else: | else: | ||||
| sub.label() | sub.label() | ||||
| sub.label() | sub.label() | ||||
| sub.operator("wm.save_userpref", text="Next") | sub.operator("wm.save_userpref", text="Next") | ||||
| layout.separator(factor=2.4) | layout.separator(factor=2.4) | ||||
| ▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines | |||||