feat(electron): app menu item and hotkey for creating new page (#2267)

Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
Doma
2023-05-13 23:45:12 +08:00
committed by LongYinan
parent c01f2d5eea
commit e8f70c6e45
6 changed files with 164 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ import './security-restrictions';
import { app } from 'electron';
import { createApplicationMenu } from './application-menu';
import { registerEvents } from './events';
import { registerHandlers } from './handlers';
import { registerUpdater } from './handlers/updater';
@@ -57,6 +58,7 @@ app
.then(registerHandlers)
.then(registerEvents)
.then(restoreOrCreateWindow)
.then(createApplicationMenu)
.then(registerUpdater)
.catch(e => console.error('Failed create window:', e));
/**