Fix bug: search filters UI opens when user clicks on folder when advancedSearch is set in settings

This commit is contained in:
ik9999 2018-12-31 15:54:42 +03:00
parent 5e57938aab
commit b7ecf9d925
1 changed files with 3 additions and 0 deletions

View File

@ -242,6 +242,9 @@ const AppModel = Backbone.Model.extend({
setFilter: function(filter) {
this.filter = filter;
this.filter.subGroups = this.settings.get('expandGroups');
if (!this.filter.advanced && this.advancedSearch) {
this.filter.advanced = this.advancedSearch;
}
const entries = this.getEntries();
if (!this.activeEntryId || !entries.get(this.activeEntryId)) {
const firstEntry = entries.first();