UI: Optional prompt to quit for non win32 systems

D566 by @januz

Use Blender native dialog when OS dialog's aren't supported.
This commit is contained in:
Campbell Barton
2018-03-21 16:00:18 +01:00
parent 23ffd4ec39
commit 5ba5254ec1
15 changed files with 195 additions and 15 deletions

View File

@@ -211,7 +211,6 @@ class USERPREF_PT_interface(Panel):
return (userpref.active_section == 'INTERFACE')
def draw(self, context):
import sys
layout = self.layout
userpref = context.user_preferences
@@ -244,9 +243,8 @@ class USERPREF_PT_interface(Panel):
col.separator()
if sys.platform[:3] == "win":
col.label("Warnings")
col.prop(view, "use_quit_dialog")
col.label("Warnings")
col.prop(view, "use_quit_dialog")
row.separator()
row.separator()