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

Fix checked status on menu template (impacts Windows only) #4834

Merged
merged 1 commit into from
Oct 17, 2016
Merged

Fix checked status on menu template (impacts Windows only) #4834

merged 1 commit into from
Oct 17, 2016

Conversation

bsclifton
Copy link
Member

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Auditors: @bbondy

Since titlebar was released with 0.12.3, the checked state has not updating properly because appState doesn't receive the update.

Fixes #4810

Since titlebar was released with 0.12.3, the checked state has not updating properly because appState doesn't receive the update.

Fixes #4810
@bsclifton bsclifton added this to the 0.12.6dev milestone Oct 16, 2016
appActions.changeSetting(settings.SHOW_BOOKMARKS_TOOLBAR, !isFirstBookmark || showBookmarksToolbar)
if (!hasOneBookmark && !getSetting(settings.SHOW_BOOKMARKS_TOOLBAR)) {
appActions.changeSetting(settings.SHOW_BOOKMARKS_TOOLBAR, true)
}
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes were made to prevent appActions.changeSetting() from being called every time. Now it will only call if this is your first bookmark and toolbar is not already visible

(site) => siteUtil.isBookmark(site) || siteUtil.isFolder(site)
)
appActions.changeSetting(settings.SHOW_BOOKMARKS_TOOLBAR, !isFirstBookmark || showBookmarksToolbar)
if (!hasOneBookmark && !getSetting(settings.SHOW_BOOKMARKS_TOOLBAR)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be cleaner to call this hasBookmarks since hasOneBookmark can be true when there are 2 bookmarks.

@bbondy
Copy link
Member

bbondy commented Oct 17, 2016

++

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants