Skip to content

Commit

Permalink
fix: selected patches order (ReVanced#1345)
Browse files Browse the repository at this point in the history
  • Loading branch information
mddanishansari committed Oct 10, 2023
1 parent 377368f commit 2abadc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ui/widgets/patcherView/patch_selector_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ class PatchSelectorCard extends StatelessWidget {

String _getPatchesSelection() {
String text = '';
for (final Patch p in locator<PatcherViewModel>().selectedPatches) {
final List<Patch> selectedPatches = locator<PatcherViewModel>().selectedPatches;
selectedPatches.sort((a, b) => a.name.compareTo(b.name));
for (final Patch p in selectedPatches) {
text += '\u2022 ${p.getSimpleName()}\n';
}
return text.substring(0, text.length - 1);
Expand Down

0 comments on commit 2abadc7

Please sign in to comment.