mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-02-17 19:58:46 -06:00
feat(settings): disable unchecking of plain text mime
This commit is contained in:
@@ -60,7 +60,9 @@ export default class CodeMimeTypesOptions extends OptionsWidget {
|
||||
|
||||
// Plain text is displayed at the top intentionally.
|
||||
if (plainTextMimeType) {
|
||||
this.$mimeTypes.append(this.#buildSelectionForMimeType(plainTextMimeType));
|
||||
const $plainEl = this.#buildSelectionForMimeType(plainTextMimeType);
|
||||
$plainEl.find("input").attr("disabled", "");
|
||||
this.$mimeTypes.append($plainEl);
|
||||
}
|
||||
|
||||
for (const [initial, mimeTypes] of Object.entries(groupedMimeTypes)) {
|
||||
|
||||
Reference in New Issue
Block a user