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 a720405..c657e8e 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -8,10 +8,23 @@ :click="onClick" :class="[tabs?.length ? '' : 'display-none']" :on-close="onClose" - /> -