allow editing of certain builtin profiles

This commit is contained in:
stopflock
2025-08-29 13:42:05 -05:00
parent 395ef77fe3
commit d2a3e96a86
4 changed files with 80 additions and 31 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ class ProfileState extends ChangeNotifier {
}
void deleteProfile(CameraProfile p) {
if (p.builtin) return;
if (!p.editable) return;
_enabled.remove(p);
_profiles.removeWhere((x) => x.id == p.id);
// Safety: Always have at least one enabled profile