2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-15 18:12:54 +00:00

No issue: Always show Make inactive for debug builds

This commit is contained in:
Jonathan Almeida 2021-10-13 21:11:31 -04:00 committed by mergify[bot]
parent e0991f0fe6
commit 9780dac846

View File

@ -7,6 +7,7 @@ package org.mozilla.fenix.tabstray.browser
import android.content.Context import android.content.Context
import mozilla.components.browser.menu.BrowserMenuBuilder import mozilla.components.browser.menu.BrowserMenuBuilder
import mozilla.components.browser.menu.item.SimpleBrowserMenuItem import mozilla.components.browser.menu.item.SimpleBrowserMenuItem
import org.mozilla.fenix.Config
import org.mozilla.fenix.R import org.mozilla.fenix.R
import org.mozilla.fenix.ext.components import org.mozilla.fenix.ext.components
@ -45,7 +46,7 @@ class SelectionMenu(
onItemTapped.invoke(Item.MakeInactive) onItemTapped.invoke(Item.MakeInactive)
}.apply { }.apply {
// We only want this menu option visible when in debug mode for testing. // We only want this menu option visible when in debug mode for testing.
visible = { context.components.settings.showSecretDebugMenuThisSession } visible = { Config.channel.isDebug || context.components.settings.showSecretDebugMenuThisSession }
} }
) )
} }