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

Bookmarks now show under Bookmarks menu #3055

Merged
merged 4 commits into from
Aug 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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