Unverified Commit 8f0cffc8 authored by Matthew Finkel's avatar Matthew Finkel
Browse files

fixup! Bug 40016: Modify Default toolbar menu

parent f2d85f13
Pipeline #1455 failed with stages
in 11 minutes and 20 seconds
......@@ -175,16 +175,13 @@ class DefaultToolbarMenu(
// Predicates that are called once, during screen init
val shouldShowSaveToCollection = (context.asActivity() as? HomeActivity)
?.browsingModeManager?.mode == BrowsingMode.Normal
val shouldDeleteDataOnQuit = context.components.settings
.shouldDeleteBrowsingDataOnQuit &&
!context.components.settings.shouldDisableNormalMode
val menuItems = listOfNotNull(
downloadsItem,
// historyItem,
bookmarksItem,
settings,
if (shouldDeleteDataOnQuit) deleteDataOnQuit else null,
deleteDataOnQuit,
BrowserMenuDivider(),
findInPage,
addToTopSites,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment