import AutoLaunch from "auto-launch" ; import { app } from "electron" ; import { settings } from "./settingsManager" ; import { info } from "../util/debug" ; let autoLaunch = new AutoLaunch ( { name : app . name , isHidden : true } ) ; /**
 * Updates autoLaunch
 */ export async function update ( ) { if ( ! app . isPackaged ) { info ( "Skipping autoLaunch." ) ; return ; } if ( settings . get ( "autoLaunch" , true ) ) autoLaunch . enable ( ) ; else autoLaunch . disable ( ) ; }