@@ -118,45 +118,12 @@ const ElectronApi = {
118118 *
119119 * @method exportMigrationLog
120120 *
121- * @param {string } sourcePath
122- * @param {string } defaultFileName
123- *
124- * @returns {Promise<boolean> }
125- */
126- exportMigrationLog : ( sourcePath , defaultFileName ) =>
127- ipcRenderer
128- . invoke ( 'show-save-dialog' , {
129- properties : [ 'createDirectory' , 'showOverwriteConfirmation' ] ,
130- defaultPath : defaultFileName ,
131- filters : [ { name : 'Log Files' , extensions : [ 'log' ] } ] ,
132- } )
133- . then ( ( result ) => {
134- if ( result . canceled ) {
135- return null
136- }
137-
138- return new Promise ( ( resolve , reject ) => {
139- fs . copyFile ( sourcePath , result . filePath , ( err ) => {
140- if ( err ) {
141- reject ( err )
142- } else {
143- resolve ( true )
144- }
145- } )
146- } )
147- } ) ,
148-
149- /**
150- * Exports ledger migration log
151- *
152- * @method exportLedgerMigrationLog
153- *
154121 * @param {string } content
155122 * @param {string } defaultFileName
156123 *
157124 * @returns {Promise }
158125 */
159- exportLedgerMigrationLog : ( content , defaultFileName ) =>
126+ exportMigrationLog : ( content , defaultFileName ) =>
160127 ipcRenderer
161128 . invoke ( 'show-save-dialog' , {
162129 properties : [ 'createDirectory' , 'showOverwriteConfirmation' ] ,
0 commit comments