upd: add open file warning

This commit is contained in:
purocean
2021-12-20 15:45:09 +08:00
parent 9a2889c4e8
commit 39ddd6883f
+5
View File
@@ -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()