mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Set guessed folder type properties
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user