mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
fix(note_language): no separator when no languages
This commit is contained in:
parent
ddd0c3a878
commit
e795caa2f3
@ -160,9 +160,7 @@ export default class NoteLanguageWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
// 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 there is at least one language.
|
||||||
if (locales.length > 2) {
|
locales.push("---");
|
||||||
locales.push("---");
|
|
||||||
}
|
|
||||||
return locales;
|
return locales;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user