1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

allow menu bar to be set in the settings

This commit is contained in:
richardtks8@gmail.com
2018-12-28 02:15:24 +08:00
parent 13c2f471aa
commit 6d4cee0041
7 changed files with 44 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ ipcMain.on('config-renew', (e, payload) => {
globalShortcut.unregisterAll()
var { config } = payload
mainWindow.setMenuBarVisibility(config.ui.showMenuBar)
var errors = []
try {
globalShortcut.register(config.hotkey.toggleMain, toggleMainWindow)