import ElectronStore from "electron-store" ; import { update as updateAutoLaunch } from "./launchManager" ; import ExtensionSettings from "../../@types/PreMiD/ExtensionSettings" ; export let settings = new ElectronStore ( { defaults : { autoLaunch : true } } ) ; param extensionSettings export function update ( extensionSettings ) { if ( settings . get ( "autoLaunch" ) != extensionSettings . autoLaunch ) { settings . set ( "autoLaunch" , extensionSettings . autoLaunch ) ; updateAutoLaunch ( ) ; console . log ( "Updated settings" ) ; } }