FileBrowser: small tweak to new search feature: clear that string when changing dir.
In 99% of cases, you do not want to keep the same filter when changing dir, and having to reset it by hand is *very* annoying!
This commit is contained in:
@@ -199,7 +199,7 @@ static void file_refresh(const bContext *C, ScrArea *UNUSED(sa))
|
||||
if (!sfile->files) {
|
||||
sfile->files = filelist_new(params->type);
|
||||
filelist_setdir(sfile->files, params->dir);
|
||||
params->active_file = -1; // added this so it opens nicer (ton)
|
||||
params->active_file = -1; /* added this so it opens nicer (ton) */
|
||||
}
|
||||
filelist_setsorting(sfile->files, params->sort);
|
||||
filelist_setfilter_options(sfile->files, params->flag & FILE_HIDE_DOT,
|
||||
|
Reference in New Issue
Block a user