import { APP_CONFIG } from '../app/app' ; import settings from 'electron-settings' ; export function getPreference < T > ( key ) { return APP_CONFIG . get ( key ) ; } export function setPreference ( key , value ) { settings . setSync ( key , value ) ; return APP_CONFIG . set ( key , value ) ; }