Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3055 from bsclifton/bookmarks-menu
Browse files Browse the repository at this point in the history
Bookmarks now show under Bookmarks menu
  • Loading branch information
bbondy authored Aug 13, 2016
2 parents 9ad7778 + 3735e45 commit ebdc613
Show file tree
Hide file tree
Showing 14 changed files with 975 additions and 404 deletions.
9 changes: 5 additions & 4 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,8 @@ app.on('ready', () => {
// reset the browser window. This will default to en-US if
// not yet configured.
locale.init(initialState.settings[settings.LANGUAGE], (strings) => {
Menu.init(AppStore.getState().get('settings'), {})

// Initialize after localization strings async loaded
Menu.init(AppStore.getState().get('settings'), AppStore.getState().get('sites'))
})

// Do this after loading the state
Expand Down Expand Up @@ -443,7 +442,9 @@ app.on('ready', () => {
})

ipcMain.on(messages.UPDATE_APP_MENU, (e, args) => {
Menu.init(AppStore.getState().get('settings'), args)
if (args && typeof args.bookmarked === 'boolean') {
Menu.updateBookmarkedStatus(args.bookmarked)
}
})

ipcMain.on(messages.CHANGE_SETTING, (e, key, value) => {
Expand Down Expand Up @@ -524,7 +525,7 @@ app.on('ready', () => {
// save app state every 5 minutes regardless of update frequency
setInterval(initiateSessionStateSave, 1000 * 60 * 5)
AppStore.addChangeListener(() => {
Menu.init(AppStore.getState().get('settings'))
Menu.init(AppStore.getState().get('settings'), AppStore.getState().get('sites'))
})

let masterKey
Expand Down
Loading

0 comments on commit ebdc613

Please sign in to comment.