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:
parent
e0991f0fe6
commit
9780dac846
@ -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 }
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user