mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-29 20:43:28 +01:00
Use app deep copy in places to avoid bugs
This commit is contained in:
@@ -164,7 +164,8 @@ class SettingsProvider with ChangeNotifier {
|
||||
|
||||
void setCategories(Map<String, int> cats, {AppsProvider? appsProvider}) {
|
||||
if (appsProvider != null) {
|
||||
List<App> changedApps = appsProvider.apps.values
|
||||
List<App> changedApps = appsProvider
|
||||
.getAppValues()
|
||||
.map((a) {
|
||||
var n1 = a.app.categories.length;
|
||||
a.app.categories.removeWhere((c) => !cats.keys.contains(c));
|
||||
|
||||
Reference in New Issue
Block a user