mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 18:39:22 +08:00
fix(note_language): duplicate separators if no language selected
This commit is contained in:
parent
15075c8626
commit
ca757b20d5
@ -152,7 +152,11 @@ export default class NoteLanguageWidget extends NoteContextAwareWidget {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
locales.push("---"); // this will separate the list of languages from the "Configure languages" button.
|
// This will separate the list of languages from the "Configure languages" button.
|
||||||
|
// If there is at least one language.
|
||||||
|
if (locales.length > 2) {
|
||||||
|
locales.push("---");
|
||||||
|
}
|
||||||
return locales;
|
return locales;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user