showOnlyFilesFromConfig config option

This commit is contained in:
antelle 2017-02-07 19:17:34 +01:00
parent ac1b4da549
commit 0003562085
3 changed files with 6 additions and 1 deletions

View File

@ -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))

View File

@ -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

View File

@ -47,5 +47,6 @@
"name": "My file",
"path": "webdav-url",
"options": { "user": "", "password": "" }
}]
}],
"showOnlyFilesFromConfig": false
}