Cleanup: clang-format
This commit is contained in:
@@ -440,8 +440,12 @@ void fsmenu_insert_entry(struct FSMenu *fsmenu,
|
||||
/* On macOS we get icons and names for System Bookmarks from the FS_CATEGORY_OTHER list. */
|
||||
if (ELEM(category, FS_CATEGORY_SYSTEM_BOOKMARKS, FS_CATEGORY_BOOKMARKS, FS_CATEGORY_RECENT)) {
|
||||
|
||||
FSMenuCategory cats[] = {
|
||||
FS_CATEGORY_OTHER, FS_CATEGORY_SYSTEM, FS_CATEGORY_SYSTEM_BOOKMARKS, FS_CATEGORY_BOOKMARKS};
|
||||
const FSMenuCategory cats[] = {
|
||||
FS_CATEGORY_OTHER,
|
||||
FS_CATEGORY_SYSTEM,
|
||||
FS_CATEGORY_SYSTEM_BOOKMARKS,
|
||||
FS_CATEGORY_BOOKMARKS,
|
||||
};
|
||||
int i = ARRAY_SIZE(cats);
|
||||
if (category == FS_CATEGORY_BOOKMARKS) {
|
||||
i--;
|
||||
@@ -752,7 +756,6 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
|
||||
|
||||
fsmenu_add_windows_folder(
|
||||
fsmenu, FS_CATEGORY_OTHER, &FOLDERID_SkyDrive, NULL, ICON_URL, FS_INSERT_LAST);
|
||||
|
||||
}
|
||||
}
|
||||
#else
|
||||
@@ -760,10 +763,18 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
|
||||
{
|
||||
/* We store some known macOS system paths and corresponding icons
|
||||
* and names in the FS_CATEGORY_OTHER (not displayed directly) category. */
|
||||
fsmenu_insert_entry(fsmenu, FS_CATEGORY_OTHER,
|
||||
"/Library/Fonts/", IFACE_("Fonts"), ICON_FILE_FONT, FS_INSERT_LAST);
|
||||
fsmenu_insert_entry(fsmenu, FS_CATEGORY_OTHER,
|
||||
"/Applications/", IFACE_("Applications"), ICON_FILE_FOLDER, FS_INSERT_LAST);
|
||||
fsmenu_insert_entry(fsmenu,
|
||||
FS_CATEGORY_OTHER,
|
||||
"/Library/Fonts/",
|
||||
IFACE_("Fonts"),
|
||||
ICON_FILE_FONT,
|
||||
FS_INSERT_LAST);
|
||||
fsmenu_insert_entry(fsmenu,
|
||||
FS_CATEGORY_OTHER,
|
||||
"/Applications/",
|
||||
IFACE_("Applications"),
|
||||
ICON_FILE_FOLDER,
|
||||
FS_INSERT_LAST);
|
||||
|
||||
const char *home = BLI_getenv("HOME");
|
||||
|
||||
|
Reference in New Issue
Block a user