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:
parent
b6873052b9
commit
cb068873f0
2 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue