Skip to content

Commit

Permalink
feat: rename recommended patches to default patches
Browse files Browse the repository at this point in the history
  • Loading branch information
Aunali321 committed Apr 16, 2023
1 parent 1f97514 commit 658a906
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions assets/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
"viewTitle": "Select patches",
"searchBarHint": "Search patches",
"doneButton": "Done",
"recommended": "Recommended",
"recommendedTooltip": "Select all recommended patches",
"default": "Default",
"defaultTooltip": "Select all default patches",
"none": "None",
"noneTooltip": "Deselect all patches",
"loadPatchesSelection": "Load patches selection",
Expand Down
7 changes: 3 additions & 4 deletions lib/ui/views/patches_selector/patches_selector_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,13 @@ class _PatchesSelectorViewState extends State<PatchesSelectorView> {
Row(
children: [
ActionChip(
label:
I18nText('patchesSelectorView.recommended'),
label: I18nText('patchesSelectorView.default'),
tooltip: FlutterI18n.translate(
context,
'patchesSelectorView.recommendedTooltip',
'patchesSelectorView.defaultTooltip',
),
onPressed: () {
model.selectRecommendedPatches();
model.selectDefaultPatches();
},
),
const SizedBox(width: 8),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class PatchesSelectorViewModel extends BaseViewModel {
notifyListeners();
}

void selectRecommendedPatches() {
void selectDefaultPatches() {
selectedPatches.clear();

if (_managerAPI.areExperimentalPatchesEnabled() == false) {
Expand Down

0 comments on commit 658a906

Please sign in to comment.