Unverified Commit b30df1e9 authored by Matthew Finkel's avatar Matthew Finkel
Browse files

fixup! Bug 40016: Modify Default toolbar menu

Bug 40093: Enable Quit menu button
parent 94888f5b
Pipeline #1501 failed with stages
......@@ -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,
......
Markdown is supported
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