Fix file name sometimes not visible immediately after renaming
Steps to reproduce were: * Open File Browser * Create a new directory * Cancel renaming with Esc File selection flags were modified during drawing when the rename button got removed, but the file name label drawing wasn't checking the modified state.
This commit is contained in:
parent
c606044157
commit
315ae005c3
|
@ -876,7 +876,9 @@ void file_draw_list(const bContext *C, ARegion *region)
|
|||
sfile->files, file, FILE_SEL_REMOVE, FILE_SEL_EDITING, CHECK_ALL);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
/* file_selflag might have been modified by branch above. */
|
||||
if ((file_selflag & FILE_SEL_EDITING) == 0) {
|
||||
const int txpos = (params->display == FILE_IMGDISPLAY) ? sx : sx + 1 + icon_ofs;
|
||||
const int typos = (params->display == FILE_IMGDISPLAY) ?
|
||||
sy - layout->tile_h + layout->textheight :
|
||||
|
|
Loading…
Reference in New Issue