diff options
Diffstat (limited to 'release/scripts/startup/bl_ui/space_filebrowser.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_filebrowser.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py index a322b96f9dd..e1097e8d512 100644 --- a/release/scripts/startup/bl_ui/space_filebrowser.py +++ b/release/scripts/startup/bl_ui/space_filebrowser.py @@ -469,7 +469,12 @@ class FILEBROWSER_MT_context_menu(Menu): layout.separator() layout.operator("file.rename", text="Rename") - # layout.operator("file.delete") + sub = layout.row() + sub.operator_context = 'EXEC_DEFAULT' + sub.operator("file.delete", text="Delete") + + layout.separator() + sub = layout.row() sub.operator_context = 'EXEC_DEFAULT' sub.operator("file.directory_new", text="New Folder") @@ -503,5 +508,6 @@ classes = ( if __name__ == "__main__": # only for live edit. from bpy.utils import register_class + for cls in classes: register_class(cls) |