message: Fix readOpenSelectedFileMessage to call openFile
diff: @@ -190,31 +190,14 @@ export default class ElectronApp extends React.Component<{}, State> {
  }
  }
  - readOpenSelectedFileMessage(event, selectedFile) {
  + readOpenSelectedFileMessage = (event, selectedFile) => {
  if (selectedFile) this.openFile(selectedFile)
  }
  - showOpenDialog() {
  - dialog.showOpenDialog({
  - title: 'Choose a .graphql file to edit',
  - properties: ['openFile'],
  - // filters: [{
  - // name: '*',
  - // extensions: ['graphql']
  - // }]
  - }, fileNames => {
  - if (fileNames && fileNames.length > 0) {
  - let path = fileNames[0]
  - this.openFile(path)
  - }
  - })
  - }
  -
  - openFile(file: string) {
  - if (file) {
  - const query = fs.readFileSync(file, 'utf-8')
  -
  + openFile(fileToOpen: string) {
  + const query = fs.readFileSync(fileToOpen, 'utf-8')
  const rc = this.getGraphcoolRc()
  +
  if (rc && rc.platformToken) {
  this.setState({ platformToken: rc.platformToken }, () => {
  this.playground.fetchPermissionSchema()
  @@ -224,16 +207,31 @@ export default class ElectronApp extends React.Component<{}, State> {
  }
  const permissionSession = this.getPermissionSessionForPath(
  - file,
  + fileToOpen,
  )
  this.playground.newPermissionTab(
  permissionSession,
  - path.basename(file),
  - file,
  + path.basename(fileToOpen),
  + fileToOpen,
  query,
  )
  }
  +
  + showOpenDialog() {
  + dialog.showOpenDialog({
  + title: 'Choose a .graphql file to edit',
  + properties: ['openFile'],
  + // filters: [{
  + // name: '*',
  + // extensions: ['graphql']
  + // }]
  + }, fileNames => {
  + if (fileNames && fileNames.length > 0) {
  + let path = fileNames[0]
  + this.openFile(path)
  + }
  + })
  }
  getSaveFileName(): Promise<string> {
  