diff --git a/lib/ui/views/patches_selector/patches_selector_view.dart b/lib/ui/views/patches_selector/patches_selector_view.dart index 91f75c9c..c700a9b3 100644 --- a/lib/ui/views/patches_selector/patches_selector_view.dart +++ b/lib/ui/views/patches_selector/patches_selector_view.dart @@ -135,7 +135,8 @@ class _PatchesSelectorViewState extends State { Row( children: [ ActionChip( - label: I18nText('patchesSelectorView.recommended'), + label: + I18nText('patchesSelectorView.recommended'), tooltip: FlutterI18n.translate( context, 'patchesSelectorView.recommendedTooltip', @@ -145,18 +146,6 @@ class _PatchesSelectorViewState extends State { }, ), const SizedBox(width: 8), - ActionChip( - label: I18nText('patchesSelectorView.all'), - tooltip: FlutterI18n.translate( - context, - 'patchesSelectorView.allTooltip', - ), - onPressed: () { - model.selectAllPatcherWarning(context); - model.selectAllPatches(true); - }, - ), - const SizedBox(width: 8), ActionChip( label: I18nText('patchesSelectorView.none'), tooltip: FlutterI18n.translate( diff --git a/lib/ui/views/patches_selector/patches_selector_viewmodel.dart b/lib/ui/views/patches_selector/patches_selector_viewmodel.dart index b44e23f0..490aea60 100644 --- a/lib/ui/views/patches_selector/patches_selector_viewmodel.dart +++ b/lib/ui/views/patches_selector/patches_selector_viewmodel.dart @@ -50,38 +50,6 @@ class PatchesSelectorViewModel extends BaseViewModel { notifyListeners(); } - Future selectAllPatcherWarning(BuildContext context) { - return showDialog( - context: context, - builder: (context) => AlertDialog( - title: I18nText('warning'), - backgroundColor: Theme.of(context).colorScheme.secondaryContainer, - content: I18nText('patchesSelectorView.selectAllPatchesWarningContent'), - actions: [ - CustomMaterialButton( - label: I18nText('okButton'), - onPressed: () => Navigator.of(context).pop(), - ) - ], - ), - ); - } - - void selectAllPatches(bool isSelected) { - selectedPatches.clear(); - - if (isSelected && _managerAPI.areExperimentalPatchesEnabled() == false) { - selectedPatches - .addAll(patches.where((element) => isPatchSupported(element))); - } - - if (isSelected && _managerAPI.areExperimentalPatchesEnabled()) { - selectedPatches.addAll(patches); - } - - notifyListeners(); - } - void selectRecommendedPatches() { selectedPatches.clear();