mirror of
https://github.com/viliusle/miniPaint.git
synced 2026-02-06 16:06:47 +00:00
Fix for user font same as default font
This commit is contained in:
parent
b79bf2b020
commit
07c03377e5
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user