async exportFileData(content, mime, file) {
    const opts = {
      file
    };
    const result = await ipc.invoke('save-dialog', opts)
    const { filePath, canceled } = result;
    if (canceled) {
      return;
    }
    await this._writeContent(filePath, content, mime);
  }
/**
   * Requests a save file dialog and saves the data to selected path if not cancelled.
   * This does nothing when dialog is canceled.
   *
   * @param {String|Object|Buffer} content Data to write
   * @param {String=} mime Content media type. Currently only `application/json` is
   * supported when the `content` is an object or an array.
   * @param {String=} file Suggested file name
   * @return {Promise}
   */
Requests a save file dialog and saves the data to selected path if not cancelled.
This does nothing when dialog is canceled.

@param {String|Object|Buffer} content Data to write
@param {String=} mime Content media type. Currently only `application/json` is
supported when the `content` is an object or an array.
@param {String=} file Suggested file name
@return {Promise}
Requests a save file dialog and saves the data to selected path if not cancelled . This does nothing when dialog is canceled . @param { String|Object|Buffer } content Data to write @param { String = } mime Content media type . Currently only ` application / json ` is supported when the ` content ` is an object or an array . @param { String = } file Suggested file name @return { Promise }
async exportFileData(content, mime, file) {
    const opts = {
      file
    };
    const result = await ipc.invoke('save-dialog', opts)
    const { filePath, canceled } = result;
    if (canceled) {
      return;
    }
    await this._writeContent(filePath, content, mime);
  }
async exportFileData ( content , mime , file ) { const opts = { file } ; const result = await ipc . invoke ( 'save-dialog' , opts ) const { filePath , canceled } = result ; if ( canceled ) { return ; } await this . _writeContent ( filePath , content , mime ) ; }
Requests a save file dialog and saves the data to selected path if not cancelled.
Requests a save file dialog and saves the data to selected path if not cancelled .