rename context menus earch to 'new tab'
This commit is contained in:
@@ -42,7 +42,7 @@ GeckoSelectionActionService selectionActionService(Ref ref) {
|
|||||||
|
|
||||||
unawaited(
|
unawaited(
|
||||||
service.setActions([
|
service.setActions([
|
||||||
SearchAction((text) async {
|
NewTabAction((text) async {
|
||||||
final router = await ref.read(routerProvider.future);
|
final router = await ref.read(routerProvider.future);
|
||||||
final settings = ref.read(generalSettingsWithDefaultsProvider);
|
final settings = ref.read(generalSettingsWithDefaultsProvider);
|
||||||
final route = SearchRoute(
|
final route = SearchRoute(
|
||||||
|
|||||||
+4
-4
@@ -48,11 +48,11 @@ class DefaultSearchAction extends BaseSelectionAction {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class SearchAction extends BaseSelectionAction {
|
class NewTabAction extends BaseSelectionAction {
|
||||||
SearchAction(PerformAction action)
|
NewTabAction(PerformAction action)
|
||||||
: super(
|
: super(
|
||||||
id: 'CUSTOM_CONTEXT_MENU_SEARCH',
|
id: 'CUSTOM_CONTEXT_MENU_NEW_TAB',
|
||||||
title: 'Search',
|
title: 'New Tab',
|
||||||
performAction: action,
|
performAction: action,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user