diff --git a/app/main.js b/app/main.js index 2a98c37..ea472d5 100644 --- a/app/main.js +++ b/app/main.js @@ -53,6 +53,10 @@ function createWindow() { }, 2000); } +ipcMain.on("open-menu", (event, arg) => { + openFile(); +}); + app.on("ready", async () => { const t = await i18next.use(Backend).init(i18nextOptions); createWindow(); diff --git a/src/components/Home.vue b/src/components/Home.vue index 5804d5b..c657e8e 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -132,6 +132,7 @@ export default { }); tab.value = key; + electron.ipcRenderer.send('open-menu'); }; const handleRemove = () => {