mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 09:27:24 +00:00
fixed Windows font name autocomplete - fixed #3686
This commit is contained in:
parent
ad78f38210
commit
2cafd97751
1 changed files with 1 additions and 5 deletions
|
@ -23,11 +23,7 @@ export class AppearanceSettingsTabComponent {
|
|||
async ngOnInit () {
|
||||
if (this.hostApp.platform === Platform.Windows || this.hostApp.platform === Platform.macOS) {
|
||||
const fonts = await new Promise<any[]>((resolve) => fontManager.findFonts({ monospace: true }, resolve))
|
||||
if (this.hostApp.platform === Platform.Windows) {
|
||||
this.fonts = fonts.map(x => `${x.family} ${x.style}`.trim())
|
||||
} else {
|
||||
this.fonts = fonts.map(x => x.family.trim())
|
||||
}
|
||||
this.fonts = fonts.map(x => x.family.trim())
|
||||
this.fonts.sort()
|
||||
}
|
||||
if (this.hostApp.platform === Platform.Linux) {
|
||||
|
|
Loading…
Reference in a new issue