1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

fix shell.openItem -> shell.openPath

This commit is contained in:
Andrew Simachev 2021-01-18 16:01:04 +03:00
parent f741d846ee
commit beace8f8a9

View file

@ -297,7 +297,7 @@ function createWindow () {
});
ipcMain.on('pathOpen', async (e, path) => {
shell.openItem(path).catch((error) => {
shell.openPath(path).catch((error) => {
console.log(error);
});
});
@ -399,7 +399,7 @@ function menuInit () {
submenu: [
{
label: 'Show work directory',
click: () => { shell.openItem(app.getPath('userData')); }
click: () => { shell.openPath(app.getPath('userData')); }
},
{
label: 'Import',