_darwinUpdateStatusChnaged(status) {
    const items = this.topMenu.items[0].submenu;
    switch (status) {
      case 'checking-for-update':
        items.items[2].visible = false;
        items.items[3].visible = false;
        items.items[4].visible = true;
        items.items[5].visible = false;
        break;
      case 'download-progress':
        items.items[2].visible = false;
        items.items[3].visible = false;
        items.items[4].visible = false;
        items.items[5].visible = true;
        break;
      case 'not-available':
        items.items[2].visible = false;
        items.items[3].visible = true;
        items.items[4].visible = false;
        items.items[5].visible = false;
        break;
      case 'update-downloaded':
        items.items[2].visible = true;
        items.items[3].visible = false;
        items.items[4].visible = false;
        items.items[5].visible = false;
        break;
    }
  }
/**
   * Handles Darwin update status change.
   * @param {Object} status Data associated with the event.
   * First item in the array is event type. Resto of items are avent arguments.
   */
Handles Darwin update status change.
@param {Object} status Data associated with the event.
First item in the array is event type. Resto of items are avent arguments.
Handles Darwin update status change . @param { Object } status Data associated with the event . First item in the array is event type . Resto of items are avent arguments .
_darwinUpdateStatusChnaged(status) {
    const items = this.topMenu.items[0].submenu;
    switch (status) {
      case 'checking-for-update':
        items.items[2].visible = false;
        items.items[3].visible = false;
        items.items[4].visible = true;
        items.items[5].visible = false;
        break;
      case 'download-progress':
        items.items[2].visible = false;
        items.items[3].visible = false;
        items.items[4].visible = false;
        items.items[5].visible = true;
        break;
      case 'not-available':
        items.items[2].visible = false;
        items.items[3].visible = true;
        items.items[4].visible = false;
        items.items[5].visible = false;
        break;
      case 'update-downloaded':
        items.items[2].visible = true;
        items.items[3].visible = false;
        items.items[4].visible = false;
        items.items[5].visible = false;
        break;
    }
  }
_darwinUpdateStatusChnaged ( status ) { const items = this . topMenu . items [ 0 ] . submenu ; switch ( status ) { case 'checking-for-update' : items . items [ 2 ] . visible = false ; items . items [ 3 ] . visible = false ; items . items [ 4 ] . visible = true ; items . items [ 5 ] . visible = false ; break ; case 'download-progress' : items . items [ 2 ] . visible = false ; items . items [ 3 ] . visible = false ; items . items [ 4 ] . visible = false ; items . items [ 5 ] . visible = true ; break ; case 'not-available' : items . items [ 2 ] . visible = false ; items . items [ 3 ] . visible = true ; items . items [ 4 ] . visible = false ; items . items [ 5 ] . visible = false ; break ; case 'update-downloaded' : items . items [ 2 ] . visible = true ; items . items [ 3 ] . visible = false ; items . items [ 4 ] . visible = false ; items . items [ 5 ] . visible = false ; break ; } }
Handles Darwin update status change.
Handles Darwin update status change .