mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-11 13:46:17 +00:00
fix: selected patches order (#1345)
This commit is contained in:
@@ -58,7 +58,9 @@ class PatchSelectorCard extends StatelessWidget {
|
|||||||
|
|
||||||
String _getPatchesSelection() {
|
String _getPatchesSelection() {
|
||||||
String text = '';
|
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';
|
text += '\u2022 ${p.getSimpleName()}\n';
|
||||||
}
|
}
|
||||||
return text.substring(0, text.length - 1);
|
return text.substring(0, text.length - 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user