mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Dirty on plain text only changes
This commit is contained in:
parent
2f2ea39b41
commit
fea4aa276b
1 changed files with 5 additions and 0 deletions
|
@ -285,6 +285,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
private long working = -1;
|
||||
private State state = State.NONE;
|
||||
private boolean show_images = false;
|
||||
private Boolean last_plain_only = null;
|
||||
private int last_available = 0; // attachments
|
||||
private boolean saved = false;
|
||||
private String subject = null;
|
||||
|
@ -5038,6 +5039,8 @@ public class FragmentCompose extends FragmentBase {
|
|||
EntityOperation.queue(context, data.draft, EntityOperation.BODY);
|
||||
}
|
||||
|
||||
last_plain_only = data.draft.plain_only;
|
||||
|
||||
List<EntityAttachment> attachments = db.attachment().getAttachments(data.draft.id);
|
||||
for (EntityAttachment attachment : attachments)
|
||||
if (attachment.available) {
|
||||
|
@ -5545,9 +5548,11 @@ public class FragmentCompose extends FragmentBase {
|
|||
!MessageHelper.equal(draft.bcc, abcc) ||
|
||||
!Objects.equals(draft.subject, subject) ||
|
||||
!draft.signature.equals(signature) ||
|
||||
!Objects.equals(last_plain_only, draft.plain_only) ||
|
||||
last_available != available)
|
||||
dirty = true;
|
||||
|
||||
last_plain_only = draft.plain_only;
|
||||
last_available = available;
|
||||
|
||||
if (dirty) {
|
||||
|
|
Loading…
Reference in a new issue