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