mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-02 03:40:16 +00:00
Fixes #836: Creates new private tab in new session from menu bar
This commit is contained in:
parent
3f6c68cced
commit
c4b3927f2e
@ -271,7 +271,7 @@ class BrowserFragment : Fragment(), BackHandler {
|
||||
.selectedSession?.url?.apply { requireContext().share(this) }
|
||||
ToolbarMenu.Item.NewPrivateTab -> {
|
||||
val directions = BrowserFragmentDirections
|
||||
.actionBrowserFragmentToSearchFragment(requireComponents.core.sessionManager.selectedSession?.id)
|
||||
.actionBrowserFragmentToSearchFragment(null)
|
||||
Navigation.findNavController(view!!).navigate(directions)
|
||||
(activity as HomeActivity).browsingModeManager.mode = BrowsingModeManager.Mode.Private
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user