|
|
@ -40,7 +40,7 @@ class Ation { |
|
|
|
if (!this.windowManager.mainWindow) |
|
|
|
if (!this.windowManager.mainWindow) |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
|
|
|
|
|
|
|
|
const result = await dialog.showOpenDialog(this.mainWindow, { |
|
|
|
const result = await dialog.showOpenDialog(this.windowManager.mainWindow, { |
|
|
|
title : "open file", |
|
|
|
title : "open file", |
|
|
|
filters : [ |
|
|
|
filters : [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -57,7 +57,8 @@ class Ation { |
|
|
|
const basePath = path.dirname(result.filePaths[0]); |
|
|
|
const basePath = path.dirname(result.filePaths[0]); |
|
|
|
const data = parser(fileContents); |
|
|
|
const data = parser(fileContents); |
|
|
|
|
|
|
|
|
|
|
|
return [basePath, data]; |
|
|
|
|
|
|
|
|
|
|
|
this.windowManager.mainWindow.send("Ation::openFile", [basePath, data]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
Ation.Instances = 0; |
|
|
|
Ation.Instances = 0; |
|
|
|