mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-06 04:45:50 +01:00
Reset error on disabling sync
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user