1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

iOS: Fixes #2301: Removed filesystem sync option, which was not supported

This commit is contained in:
Laurent Cozic
2020-02-08 11:59:19 +00:00
parent 1606076b4e
commit 0229686203
9 changed files with 38 additions and 22 deletions

View File

@@ -35,11 +35,15 @@ class SyncTargetRegistry {
return this.idToMetadata(id).name;
}
static idAndLabelPlainObject() {
static idAndLabelPlainObject(os) {
let output = {};
for (let n in this.reg_) {
if (!this.reg_.hasOwnProperty(n)) continue;
output[n] = this.reg_[n].label;
const info = this.reg_[n];
if (info.classRef.unsupportedPlatforms().indexOf(os) >= 0) {
continue;
}
output[n] = info.label;
}
return output;
}