mirror of https://github.com/keeweb/keeweb.git
don't assign path for different storage
This commit is contained in:
parent
2d4280c5ef
commit
09cb45198c
|
@ -516,7 +516,7 @@ var AppModel = Backbone.Model.extend({
|
|||
var storage = options.storage || file.get('storage');
|
||||
var path = options.path || file.get('path');
|
||||
var opts = options.opts || file.get('opts');
|
||||
if (storage && Storage[storage].getPathForName && !path) {
|
||||
if (storage && Storage[storage].getPathForName && (!path || storage !== file.get('storage'))) {
|
||||
path = Storage[storage].getPathForName(file.get('name'));
|
||||
}
|
||||
logger.info('Sync started', storage, path, options);
|
||||
|
|
Loading…
Reference in New Issue