mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-06-03 05:28:02 +02:00
all profiles as lists, better handling, stop using a fallback profile for broken submissions without one
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user