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:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user