fix(patches-selector): New tag showing for old patches (#1113)

This commit is contained in:
aAbed 2023-08-10 01:16:37 +05:45 committed by GitHub
parent fd741f2ccf
commit ea05d13a1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,7 +117,7 @@ class PatchesSelectorViewModel extends BaseViewModel {
return false;
} else {
return !savedPatches
.any((p) => p.name == patch.name.toLowerCase().replaceAll(' ', '-'));
.any((p) => p.getSimpleName() == patch.getSimpleName());
}
}