mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 09:27:24 +00:00
fixed css config field
This commit is contained in:
parent
f76a5505ec
commit
c956ee1183
1 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
||||
import { Observable } from 'rxjs'
|
||||
import { debounce } from 'utils-decorators/dist/cjs'
|
||||
import { debounceTime, distinctUntilChanged, map } from 'rxjs/operators'
|
||||
import { exec } from 'mz/child_process'
|
||||
const fontManager = require('fontmanager-redux') // eslint-disable-line
|
||||
|
@ -50,4 +51,12 @@ export class AppearanceSettingsTabComponent {
|
|||
getPreviewFontFamily () {
|
||||
return getCSSFontFamily(this.config.store)
|
||||
}
|
||||
|
||||
@debounce(500)
|
||||
saveConfiguration (requireRestart?: boolean) {
|
||||
this.config.save()
|
||||
if (requireRestart) {
|
||||
this.config.requestRestart()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue