Commit 0e0a36de authored by 神楽坂玲奈's avatar 神楽坂玲奈

revert

parent 46df6bcd
......@@ -253,10 +253,12 @@ export class AppDetailComponent implements OnInit, OnChanges {
let extname = path.extname(filename).slice(1);
// let remote = require('electron').remote
let { filePaths } = (await remote.dialog.showOpenDialog({
filters: [{name: filename, extensions: [extname]}],
properties: ['openFile']
}));
let filePaths = await new Promise<string[]>((resolve, reject) => {
remote.dialog.showOpenDialog({
filters: [{name: filename, extensions: [extname]}],
properties: ['openFile']
}, resolve);
});
if (filePaths && filePaths[0]) {
this.import_path = filePaths[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment