Skip to content
Snippets Groups Projects
Unverified Commit f4b8b92d authored by Matthew Finkel's avatar Matthew Finkel
Browse files

squash! Modify UI/UX

Bug 40172: Find the Quit button
parent 050ec6ee
Branches
Tags
1 merge request!124Draft: Bug 40172: Find the Quit button
......@@ -73,7 +73,6 @@ open class DefaultToolbarMenu(
private var isCurrentUrlBookmarked = false
private var isBookmarkedJob: Job? = null
private val shouldDeleteDataOnQuit = context.settings().shouldDeleteBrowsingDataOnQuit
private val shouldUseBottomToolbar = context.settings().shouldUseBottomToolbar
private val accountManager = FenixAccountManager(context)
......@@ -578,7 +577,7 @@ open class DefaultToolbarMenu(
//saveToCollectionItem,
BrowserMenuDivider(),
settingsItem,
if (shouldDeleteDataOnQuit) deleteDataOnQuit else null,
deleteDataOnQuit,
if (shouldUseBottomToolbar) BrowserMenuDivider() else null,
if (shouldUseBottomToolbar) menuToolbar else null
)
......
......
......@@ -229,7 +229,7 @@ class HomeMenu(
@Suppress("ComplexMethod")
private fun newCoreMenuItems(): List<BrowserMenuItem> {
// val experiments = context.components.analytics.experiments
val settings = context.components.settings
// val settings = context.components.settings
val bookmarksItem = BrowserMenuImageText(
context.getString(R.string.library_bookmarks),
......@@ -316,7 +316,7 @@ class HomeMenu(
whatsNewItem,
helpItem,
settingsItem,
if (settings.shouldDeleteBrowsingDataOnQuit) quitItem else null
quitItem
).also { items ->
items.getHighlight()?.let { onHighlightPresent(it) }
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment