allow editing of certain builtin profiles

This commit is contained in:
stopflock committed 2025-08-29 13:48:08 -05:00
1 parent 395ef77fe3
commit d2a3e96a86
4 files changed
+80 -31

No files matched your search

+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