File Browser: Fix Windows Execute/Cancel button order
Was using wrong check for Windows, causing this to fail
This commit is contained in:
parent
9e3cd98529
commit
1af0f1fed9
Notes:
blender-bot
2023-02-14 10:11:54 +01:00
Referenced by issue #69469, Address Sanitizer reports read overrun in blender/windowmanager/intern/wm_operator_props.c
|
@ -445,12 +445,12 @@ class FILEBROWSER_PT_file_operation(Panel):
|
|||
# subsub.operator("file.filenum", text="", icon='REMOVE').increment = -1
|
||||
|
||||
# organize buttons according to the OS standard
|
||||
if sys.platform != "win":
|
||||
if sys.platform[:3] != "win":
|
||||
sub.operator("FILE_OT_cancel", text="Cancel")
|
||||
subsub = sub.row()
|
||||
subsub.active_default = True
|
||||
subsub.operator("FILE_OT_execute", text=params.title)
|
||||
if sys.platform == "win":
|
||||
if sys.platform[:3] == "win":
|
||||
sub.operator("FILE_OT_cancel", text="Cancel")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue