mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
upd: add open file warning
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user