diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-03-21 18:00:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-03-21 18:04:01 +0300 |
commit | 5ba5254ec1ebba6c1e89b663592d716b92e13165 (patch) | |
tree | b8f74acaf2ec5ba374235bbf811f412ad8b1f7e3 /release/scripts | |
parent | 23ffd4ec394011cec26879cba946501b245020fd (diff) |
UI: Optional prompt to quit for non win32 systems
D566 by @januz
Use Blender native dialog when OS dialog's aren't supported.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index e61a6abbbca..7e7e6ccca2d 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -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() |