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:
parent
f741d846ee
commit
beace8f8a9
1 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue