toggleAllAttachments method

void toggleAllAttachments()

Implementation

void toggleAllAttachments() {
  allAttachmentsDisabled.value = !allAttachmentsDisabled.value;
  for (Attachment attachment in attachments) {
    attachment.active = !allAttachmentsDisabled.value;
  }
  attachments.refresh();
  update();
}