Reset account/identity/folder error on save

pull/147/head
M66B 6 years ago
parent db1443ad33
commit 51fa384ee9

@ -728,12 +728,12 @@ public class FragmentAccount extends FragmentEx {
if (!update)
account.created = now;
account.error = null;
if (synchronize)
account.last_connected = now;
if (!synchronize)
account.error = null;
if (account.primary)
db.account().resetPrimary();

@ -222,12 +222,10 @@ public class FragmentFolder extends FragmentEx {
display, unified, notify, hide,
synchronize, poll, download,
sync_days, keep_days);
db.folder().setFolderError(id, null);
db.message().deleteMessagesBefore(id, keep_time, true);
if (!synchronize)
db.folder().setFolderError(id, null);
EntityOperation.sync(db, folder.id);
}

@ -516,9 +516,7 @@ public class FragmentIdentity extends FragmentEx {
identity.primary = (identity.synchronize && primary);
identity.store_sent = false;
identity.sent_folder = (sent == null ? null : sent.id);
if (!identity.synchronize)
identity.error = null;
identity.error = null;
if (identity.primary)
db.identity().resetPrimary();

Loading…
Cancel
Save