diff options
author | Yevgeny Makarov <jenkm> | 2020-01-20 16:47:00 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-01-20 16:50:18 +0300 |
commit | 5c5f2bd221ca5dc3d7344f4595f05ad60d525b7d (patch) | |
tree | 9a68969a515c3dd43fd8009508610788ee39e46d /source/blender/editors/space_file/fsmenu.c | |
parent | 81befded7bb1276e6f284d69dce7d6742b4f31b7 (diff) |
Fix file browser not excluding AirDrop from the System list on macOS
There is already code for this, it just wasn't working. Now add the
slash after checking for an empty string.
Differential Revision: https://developer.blender.org/D6568
Diffstat (limited to 'source/blender/editors/space_file/fsmenu.c')
-rw-r--r-- | source/blender/editors/space_file/fsmenu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c index f9506da39a8..fc03453a5cc 100644 --- a/source/blender/editors/space_file/fsmenu.c +++ b/source/blender/editors/space_file/fsmenu.c @@ -616,12 +616,12 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks) continue; } - /* Add end slash for consistency with other platforms */ - BLI_add_slash(line); - /* Exclude "all my files" as it makes no sense in blender fileselector */ /* Exclude "airdrop" if wlan not active as it would show "" ) */ if (!strstr(line, "myDocuments.cannedSearch") && (*line != '\0')) { + /* Add end slash for consistency with other platforms */ + BLI_add_slash(line); + fsmenu_insert_entry( fsmenu, FS_CATEGORY_SYSTEM_BOOKMARKS, line, NULL, ICON_FILE_FOLDER, FS_INSERT_LAST); } |