updateAlwaysOnTopMenu (windowId, flag) {
    const menus = this.getWindowMenuById(windowId)
    const menu = menus.getMenuItemById('alwaysOnTopMenuItem')
    menu.checked = flag
  }
Update always on top menu item.

@param {number} windowId The window id.
@param {boolean} lineEnding Always on top.