Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_topbar.py
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| layout.menu("TOPBAR_MT_file_open_recent") | layout.menu("TOPBAR_MT_file_open_recent") | ||||
| layout.operator("wm.revert_mainfile") | layout.operator("wm.revert_mainfile") | ||||
| layout.menu("TOPBAR_MT_file_recover") | layout.menu("TOPBAR_MT_file_recover") | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator_context = 'EXEC_AREA' if context.blend_data.is_saved else 'INVOKE_AREA' | layout.operator_context = 'EXEC_AREA' if context.blend_data.is_saved else 'INVOKE_AREA' | ||||
| layout.operator("wm.save_mainfile", text="Save", icon='FILE_TICK') | layout.operator("wm.save_mainfile", text="Save", icon='FILE_TICK') | ||||
| layout.operator("wm.save_mainfile_incremental") | |||||
| layout.operator_context = 'INVOKE_AREA' | layout.operator_context = 'INVOKE_AREA' | ||||
| layout.operator("wm.save_as_mainfile", text="Save As...") | layout.operator("wm.save_as_mainfile", text="Save As...") | ||||
| layout.operator_context = 'INVOKE_AREA' | layout.operator_context = 'INVOKE_AREA' | ||||
| layout.operator("wm.save_as_mainfile", text="Save Copy...").copy = True | layout.operator("wm.save_as_mainfile", text="Save Copy...").copy = True | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator_context = 'INVOKE_AREA' | layout.operator_context = 'INVOKE_AREA' | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||