mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-07-05 04:07:57 +02:00
allow editing of certain builtin profiles
This commit is contained in:
@@ -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