Fix: Do Not Reload File Browser Params in fileselect_refresh_params
Fix #124827 for Bug #124771 adds a call in fileselect_refresh_params to ED_fileselect_set_params_from_userdef. But fileselect_refresh_params is not just called from file_init but also file_refresh, which is far too often and keeps some options from being selected. This moves ED_fileselect_set_params_from_userdef directly to file_init. Pull Request: #124938
This commit is contained in:
parent
6240a36d18
commit
0b70a9edc5
@ -457,7 +457,6 @@ void fileselect_refresh_params(SpaceFile *sfile)
|
||||
if (asset_params) {
|
||||
fileselect_refresh_asset_params(asset_params);
|
||||
}
|
||||
ED_fileselect_set_params_from_userdef(sfile);
|
||||
}
|
||||
|
||||
bool ED_fileselect_is_file_browser(const SpaceFile *sfile)
|
||||
|
@ -148,6 +148,7 @@ static void file_init(wmWindowManager * /*wm*/, ScrArea *area)
|
||||
}
|
||||
/* Validate the params right after file read. */
|
||||
fileselect_refresh_params(sfile);
|
||||
ED_fileselect_set_params_from_userdef(sfile);
|
||||
}
|
||||
|
||||
static void file_exit(wmWindowManager *wm, ScrArea *area)
|
||||
|
Loading…
x
Reference in New Issue
Block a user