mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-10-10 09:54:05 +02:00
allow editing of certain builtin profiles
This commit is contained in:
1 parent
395ef77fe3
commit
d2a3e96a86
4 files changed
+80
-31
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user