1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 07:01:05 +00:00

Reset error on disabling sync

This commit is contained in:
M66B 2018-08-14 12:13:16 +00:00
parent b6873052b9
commit cb068873f0
2 changed files with 5 additions and 0 deletions

View file

@ -448,6 +448,9 @@ public class FragmentAccount extends FragmentEx {
else
account.id = db.account().insertAccount(account);
if (!synchronize)
db.account().setAccountError(account.id, null);
List<EntityFolder> folders = new ArrayList<>();
EntityFolder inbox = new EntityFolder();

View file

@ -89,6 +89,8 @@ public class FragmentFolder extends FragmentEx {
db.beginTransaction();
db.folder().setFolderProperties(id, synchronize, days);
if (!synchronize)
db.folder().setFolderError(id, null);
EntityFolder folder = db.folder().getFolder(id);
if (!folder.synchronize)