Fix T39378: Revert, Recover Last Session and Load Factory Settings have no prompt.
Now they do, to make it harder to accidentally press them and lose work. Reviewed By: brecht, carter2422 Differential Revision: https://developer.blender.org/D440
This commit is contained in:
parent
e21a7b32f9
commit
420da872a6
|
@ -124,7 +124,6 @@ class INFO_MT_file(Menu):
|
|||
|
||||
layout.operator_context = 'INVOKE_AREA'
|
||||
layout.operator("wm.save_homefile", icon='SAVE_PREFS')
|
||||
layout.operator_context = 'EXEC_AREA'
|
||||
layout.operator("wm.read_factory_settings", icon='LOAD_FACTORY')
|
||||
|
||||
layout.separator()
|
||||
|
|
|
@ -2371,6 +2371,7 @@ static void WM_OT_revert_mainfile(wmOperatorType *ot)
|
|||
ot->name = "Revert";
|
||||
ot->idname = "WM_OT_revert_mainfile";
|
||||
ot->description = "Reload the saved file";
|
||||
ot->invoke = WM_operator_confirm;
|
||||
|
||||
ot->exec = wm_revert_mainfile_exec;
|
||||
ot->poll = wm_revert_mainfile_poll;
|
||||
|
@ -2617,6 +2618,7 @@ static void WM_OT_recover_last_session(wmOperatorType *ot)
|
|||
ot->name = "Recover Last Session";
|
||||
ot->idname = "WM_OT_recover_last_session";
|
||||
ot->description = "Open the last closed file (\"" BLENDER_QUIT_FILE "\")";
|
||||
ot->invoke = WM_operator_confirm;
|
||||
|
||||
ot->exec = wm_recover_last_session_exec;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue