Merge pull request #409 from ImranR98/dev

Bugfix for prev. commit
This commit is contained in:
Imran Remtulla
2023-03-31 15:40:18 -04:00
committed by GitHub

View File

@@ -167,7 +167,7 @@ class SettingsProvider with ChangeNotifier {
List<App> changedApps = appsProvider.apps.values
.map((a) {
var n1 = a.app.categories.length;
a.app.categories.removeWhere((c) => cats.keys.contains(c));
a.app.categories.removeWhere((c) => !cats.keys.contains(c));
return n1 > a.app.categories.length ? a.app : null;
})
.where((element) => element != null)