Fix for user font same as default font

This commit is contained in:
acer 2021-02-27 22:40:33 -05:00
parent b79bf2b020
commit 07c03377e5

View File

@ -345,7 +345,7 @@ config.TOOLS = [
value: 'Arial',
values() {
const user_font_names = Object.keys(config.user_fonts);
return ['', '[Add Font...]', ...[...config.FONTS, ...user_font_names].sort()];
return ['', '[Add Font...]', ...Array.from(new Set([...config.FONTS, ...user_font_names].sort()))];
}
},
size: 40,