async build() {
    log.info('Building application menu from template');
    try {
      const template = await this._getTemplate();
      this._createFromTemplate(template);
      this._menuLoaded = true;
      await Menu.setApplicationMenu(this.topMenu);
      log.info('Application menu is now set.');
      if (!this.pendingActions) {
        return;
      }
      this.pendingActions.forEach((item) => {
        this[item]();
      });
    } catch (cause) {
      this._menuLoaded = false;
      const message = 'Menu template file was not found.';
      log.error(message);
      log.error(cause);
    }
  }
/**
   * Builds and sets the application menu.
   * @return {Promise} Resolved when menu is created.
   */
Builds and sets the application menu.
@return {Promise} Resolved when menu is created.
Builds and sets the application menu . @return { Promise } Resolved when menu is created .
async build() {
    log.info('Building application menu from template');
    try {
      const template = await this._getTemplate();
      this._createFromTemplate(template);
      this._menuLoaded = true;
      await Menu.setApplicationMenu(this.topMenu);
      log.info('Application menu is now set.');
      if (!this.pendingActions) {
        return;
      }
      this.pendingActions.forEach((item) => {
        this[item]();
      });
    } catch (cause) {
      this._menuLoaded = false;
      const message = 'Menu template file was not found.';
      log.error(message);
      log.error(cause);
    }
  }
async build ( ) { log . info ( 'Building application menu from template' ) ; try { const template = await this . _getTemplate ( ) ; this . _createFromTemplate ( template ) ; this . _menuLoaded = true ; await Menu . setApplicationMenu ( this . topMenu ) ; log . info ( 'Application menu is now set.' ) ; if ( ! this . pendingActions ) { return ; } this . pendingActions . forEach ( ( item ) => { this [ item ] ( ) ; } ) ; } catch ( cause ) { this . _menuLoaded = false ; const message = 'Menu template file was not found.' ; log . error ( message ) ; log . error ( cause ) ; } }
Builds and sets the application menu.
Builds and sets the application menu .