Set guessed folder type properties

This commit is contained in:
M66B
2020-02-06 12:24:32 +01:00
parent f7023f0c5a
commit 06f8be22f2
3 changed files with 5 additions and 0 deletions

View File

@@ -197,7 +197,10 @@ public class EntityFolder extends EntityOrder implements Serializable {
public EntityFolder(String fullName, String type) {
this.name = fullName;
this.type = type;
setProperties();
}
void setProperties() {
int sync = EntityFolder.SYSTEM_FOLDER_SYNC.indexOf(type);
this.synchronize = (sync >= 0);
this.download = (sync < 0 || EntityFolder.SYSTEM_FOLDER_DOWNLOAD.get(sync));