[Bf-blender-cvs] [9386559] master: UI: remove create new directory popup for button in file browser header.
Andrew Buttery
noreply at git.blender.org
Mon Jan 13 10:45:20 CET 2014
Commit: 9386559db049d9cc3be0495d4cf550c3b1599f50
Author: Andrew Buttery
Date: Mon Jan 13 10:43:15 2014 +0100
https://developer.blender.org/rB9386559db049d9cc3be0495d4cf550c3b1599f50
UI: remove create new directory popup for button in file browser header.
We do keep it when typing an new directory name in the directory text field.
Reviewed By: brecht, billrey
Differential Revision: https://developer.blender.org/D188
===================================================================
M release/scripts/startup/bl_ui/space_filebrowser.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py
index 256545b..201ac0a 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -44,8 +44,10 @@ class FILEBROWSER_HT_header(Header):
row.separator()
row = layout.row(align=True)
+ layout.operator_context = "EXEC_DEFAULT"
row.operator("file.directory_new", icon='NEWFOLDER')
+ layout.operator_context = "INVOKE_DEFAULT"
params = st.params
# can be None when save/reload with a file selector open
More information about the Bf-blender-cvs
mailing list