store(name, value) {
    return new Promise((resolve) => {
      this.promises.push({
        type: 'store',
        resolve,
        name
      });
      ipcRenderer.send('update-app-preference', name, value);
    });
  }
/**
   * Updates the data and stores it in the settings file.
   * @param {String} name Property name
   * @param {?any} value Property value
   * @return {Promise} Promise resolved when the changes has been commited to
   * the file.
   */
Updates the data and stores it in the settings file.
@param {String} name Property name
@param {?any} value Property value
@return {Promise} Promise resolved when the changes has been commited to
the file.
Updates the data and stores it in the settings file . @param { String } name Property name @param { ?any } value Property value @return { Promise } Promise resolved when the changes has been commited to the file .
store(name, value) {
    return new Promise((resolve) => {
      this.promises.push({
        type: 'store',
        resolve,
        name
      });
      ipcRenderer.send('update-app-preference', name, value);
    });
  }
store ( name , value ) { return new Promise ( ( resolve ) => { this . promises . push ( { type : 'store' , resolve , name } ) ; ipcRenderer . send ( 'update-app-preference' , name , value ) ; } ) ; }
Updates the data and stores it in the settings file.
Updates the data and stores it in the settings file .