_mainPrefsHandler(e, settings, id) {
    if (!id) {
      return;
    }
    let p;
    for (let i = 0, len = this.promises.length; i < len; i++) {
      if (this.promises[i].id === id) {
        p = this.promises[i];
        this.promises.splice(i, 1);
        break;
      }
    }
    if (p) {
      p.resolve(settings);
    }
  }
/**
   * A handler for app-preferences event from the main process.
   * The event is dispatched to the window that requested this information
   * so the corresponding promise can be fulfilled.
   *
   * The implementation is in ../main/preferences-manager.js file.
   *
   * @param {Event} e
   * @param {Object} settings Restored application settings.
   * @param {String} id The id used to request the data
   */
A handler for app-preferences event from the main process.
The event is dispatched to the window that requested this information
so the corresponding promise can be fulfilled.

The implementation is in ../main/preferences-manager.js file.

@param {Event} e
@param {Object} settings Restored application settings.
@param {String} id The id used to request the data
A handler for app - preferences event from the main process . The event is dispatched to the window that requested this information so the corresponding promise can be fulfilled . The implementation is in .. / main / preferences - manager . js file . @param { Event } e @param { Object } settings Restored application settings . @param { String } id The id used to request the data
_mainPrefsHandler(e, settings, id) {
    if (!id) {
      return;
    }
    let p;
    for (let i = 0, len = this.promises.length; i < len; i++) {
      if (this.promises[i].id === id) {
        p = this.promises[i];
        this.promises.splice(i, 1);
        break;
      }
    }
    if (p) {
      p.resolve(settings);
    }
  }
_mainPrefsHandler ( e , settings , id ) { if ( ! id ) { return ; } let p ; for ( let i = 0 , len = this . promises . length ; i < len ; i ++ ) { if ( this . promises [ i ] . id === id ) { p = this . promises [ i ] ; this . promises . splice ( i , 1 ) ; break ; } } if ( p ) { p . resolve ( settings ) ; } }
A handler for app-preferences event from the main process.
A handler for app - preferences event from the main process .