界面优化,提高颜值方案
This commit is contained in:
@@ -360,6 +360,11 @@ ipcMain.on('myreader:allow-close', (event) => {
|
||||
win.close()
|
||||
})
|
||||
|
||||
ipcMain.handle('myreader:set-menu-visible', (_evt, visible: boolean): void => {
|
||||
const menu = visible ? buildMenu() : null
|
||||
Menu.setApplicationMenu(menu)
|
||||
})
|
||||
|
||||
let pendingOpenPaths: string[] = []
|
||||
|
||||
const gotTheLock = app.requestSingleInstanceLock()
|
||||
|
||||
Reference in New Issue
Block a user