mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-09 14:00:03 +00:00
fixed css config field
This commit is contained in:
parent
f76a5505ec
commit
c956ee1183
@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
||||||
import { Observable } from 'rxjs'
|
import { Observable } from 'rxjs'
|
||||||
|
import { debounce } from 'utils-decorators/dist/cjs'
|
||||||
import { debounceTime, distinctUntilChanged, map } from 'rxjs/operators'
|
import { debounceTime, distinctUntilChanged, map } from 'rxjs/operators'
|
||||||
import { exec } from 'mz/child_process'
|
import { exec } from 'mz/child_process'
|
||||||
const fontManager = require('fontmanager-redux') // eslint-disable-line
|
const fontManager = require('fontmanager-redux') // eslint-disable-line
|
||||||
@ -50,4 +51,12 @@ export class AppearanceSettingsTabComponent {
|
|||||||
getPreviewFontFamily () {
|
getPreviewFontFamily () {
|
||||||
return getCSSFontFamily(this.config.store)
|
return getCSSFontFamily(this.config.store)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@debounce(500)
|
||||||
|
saveConfiguration (requireRestart?: boolean) {
|
||||||
|
this.config.save()
|
||||||
|
if (requireRestart) {
|
||||||
|
this.config.requestRestart()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user