diff options
Diffstat (limited to 'source/blender/editors/space_file/file_draw.c')
-rw-r--r-- | source/blender/editors/space_file/file_draw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index 3245cbf2a29..bb8680682d2 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -193,8 +193,9 @@ void file_draw_buttons(const bContext *C, ARegion *ar) /* TODO, directory editing is non-functional while a library is loaded * until this is properly supported just disable it. */ - if (sfile->files && filelist_lib(sfile->files)) + if (sfile->files && filelist_lib(sfile->files)) { UI_but_flag_enable(but, UI_BUT_DISABLED); + } if ((params->flag & FILE_DIRSEL_ONLY) == 0) { but = uiDefBut( @@ -660,8 +661,9 @@ void file_draw_list(const bContext *C, ARegion *ar) } offset = ED_fileselect_layout_offset(layout, (int)ar->v2d.cur.xmin, (int)-ar->v2d.cur.ymax); - if (offset < 0) + if (offset < 0) { offset = 0; + } numfiles_layout = ED_fileselect_layout_numfiles(layout, ar); |