UI: change behavior for quit prompt

Remove confirmation popup menu, just exit.

Note that this option is mainly for developers or people reviewing
blend files, see D4406 for discussion on reason for keeping this feature
while simplifying how it works.
This commit is contained in:
2019-02-28 13:09:56 +11:00
parent 3d4d7b97c2
commit d7baf8e7e7
3 changed files with 13 additions and 7 deletions

View File

@@ -621,7 +621,7 @@ class TOPBAR_MT_file(Menu):
layout.separator()
layout.operator_context = 'EXEC_AREA'
if bpy.data.is_dirty and context.preferences.view.use_quit_dialog:
if bpy.data.is_dirty:
layout.operator_context = 'INVOKE_SCREEN' # quit dialog
layout.operator("wm.quit_blender", text="Quit", icon='QUIT')