Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/space_file.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| sfile->layout = NULL; | sfile->layout = NULL; | ||||
| } | } | ||||
| } | } | ||||
| /* spacetype; init callback, area size changes, screen set, etc */ | /* spacetype; init callback, area size changes, screen set, etc */ | ||||
| static void file_init(wmWindowManager *wm, ScrArea *sa) | static void file_init(wmWindowManager *wm, ScrArea *sa) | ||||
| { | { | ||||
| SpaceFile *sfile = (SpaceFile *)sa->spacedata.first; | SpaceFile *sfile = (SpaceFile *)sa->spacedata.first; | ||||
| struct FSMenu *fsmenu = ED_fsmenu_get(); | |||||
| /* refresh system directory list */ | |||||
| fsmenu_refresh_system_category(fsmenu); | |||||
| /* Update bookmarks 'valid' state. */ | |||||
| fsmenu_refresh_bookmarks_status(wm, fsmenu); | |||||
| if (sfile->layout) { | if (sfile->layout) { | ||||
| sfile->layout->dirty = true; | sfile->layout->dirty = true; | ||||
| } | } | ||||
mont29: Am not sure about that removal... Or is this also taken care of elsewhere? | |||||
| } | } | ||||
| static void file_exit(wmWindowManager *wm, ScrArea *sa) | static void file_exit(wmWindowManager *wm, ScrArea *sa) | ||||
| { | { | ||||
| SpaceFile *sfile = (SpaceFile *)sa->spacedata.first; | SpaceFile *sfile = (SpaceFile *)sa->spacedata.first; | ||||
| if (sfile->previews_timer) { | if (sfile->previews_timer) { | ||||
| WM_event_remove_timer_notifier(wm, NULL, sfile->previews_timer); | WM_event_remove_timer_notifier(wm, NULL, sfile->previews_timer); | ||||
| ▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines | |||||
Am not sure about that removal... Or is this also taken care of elsewhere?