From 0003562085403bc7c2985a0ab2bf906656ec2058 Mon Sep 17 00:00:00 2001 From: antelle Date: Tue, 7 Feb 2017 19:17:34 +0100 Subject: [PATCH] showOnlyFilesFromConfig config option --- app/scripts/models/app-model.js | 3 +++ release-notes.md | 1 + util/config-example.json | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/scripts/models/app-model.js b/app/scripts/models/app-model.js index 5110e594..514ca6a4 100644 --- a/app/scripts/models/app-model.js +++ b/app/scripts/models/app-model.js @@ -88,6 +88,9 @@ const AppModel = Backbone.Model.extend({ applyUserConfig(config) { this.settings.set(config.settings); if (config.files) { + if (config.showOnlyFilesFromConfig) { + this.fileInfos.reset(); + } config.files .filter(file => file && file.storage && file.name && file.path && !this.fileInfos.getMatch(file.storage, file.name, file.path)) diff --git a/release-notes.md b/release-notes.md index 9c8bf091..12e00fb7 100644 --- a/release-notes.md +++ b/release-notes.md @@ -6,6 +6,7 @@ Release notes `+` keyboard-accessible autocomplete `+` entry auto-type context menu `+` `kw.require` now provides access to modules +`+` showOnlyFilesFromConfig config option ##### v1.4.0 (2017-02-04) KDBX4 format support and minor improvements diff --git a/util/config-example.json b/util/config-example.json index ab932bdc..98b8cfa5 100644 --- a/util/config-example.json +++ b/util/config-example.json @@ -47,5 +47,6 @@ "name": "My file", "path": "webdav-url", "options": { "user": "", "password": "" } - }] + }], + "showOnlyFilesFromConfig": false }