@@ -109,7 +109,7 @@ const appProductName = global.manifest.productName
109109
110110
111111/**
112- * Force Singular Instance
112+ * Force single Instance
113113 */
114114if ( ! app . requestSingleInstanceLock ( ) ) {
115115 logger . warn ( 'Additional application instance detected:' , app . getPath ( 'exe' ) )
@@ -152,20 +152,16 @@ app.on('before-quit-for-update', () => {
152152} )
153153
154154/**
155- * @listens Electron.systemPreferences:appearance-changed
155+ * @listens Electron.App:ready
156156 */
157- systemPreferences . on ( 'appearance-changed ', ( newAppearance ) => {
158- logger . debug ( 'systemPreferences#appearance-changed' , 'newAppearance:' , newAppearance )
157+ app . once ( 'ready ', ( ) => {
158+ logger . debug ( 'app#ready' )
159159} )
160160
161161
162162/**
163- * @listens Electron.App:ready
163+ * @listens Electron.systemPreferences:appearance-changed
164164 */
165- app . once ( 'ready' , ( ) => {
166- logger . debug ( 'app#ready' )
167-
168- if ( ! process . defaultApp && app . isInApplicationsFolder ( ) ) {
169- return
170- }
165+ systemPreferences . on ( 'appearance-changed' , ( newAppearance ) => {
166+ logger . debug ( 'systemPreferences#appearance-changed' , 'newAppearance:' , newAppearance )
171167} )
0 commit comments