diff --git a/src/main/app.ts b/src/main/app.ts index b1011078..2e07c1a5 100644 --- a/src/main/app.ts +++ b/src/main/app.ts @@ -277,6 +277,11 @@ if (!gotTheLock) { showWindow() }) + app.on('open-file', (e) => { + win && dialog.showMessageBox(win, { message: 'Yank Note dose not support opening files directly.' }) + e.preventDefault() + }) + app.on('ready', () => { startup() serve()