all profiles as lists, better handling, stop using a fallback profile for broken submissions without one

This commit is contained in:
stopflock
2025-10-24 17:31:04 -05:00
parent f1f145a35f
commit 0db4c0f80d
5 changed files with 143 additions and 259 deletions
+1 -13
View File
@@ -23,19 +23,7 @@ class ProfileState extends ChangeNotifier {
// Add built-in profiles if this is first launch
if (addDefaults) {
final builtinProfiles = [
NodeProfile.genericAlpr(),
NodeProfile.flock(),
NodeProfile.motorola(),
NodeProfile.genetec(),
NodeProfile.leonardo(),
NodeProfile.neology(),
NodeProfile.genericGunshotDetector(),
NodeProfile.shotspotter(),
NodeProfile.flockRaven(),
];
_profiles.addAll(builtinProfiles);
_profiles.addAll(NodeProfile.getDefaults());
await ProfileService().save(_profiles);
}