We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 095232f commit d417036Copy full SHA for d417036
lib/view/screens/overlay.dart
@@ -180,7 +180,9 @@ class HDSOverlay extends StatelessWidget {
180
Hive.box<DataWidgetProperties>(HiveUtils.boxDataWidgetProperties);
181
182
await box.clear();
183
- await box.addAll(profile.widgetProperties);
+ // We have to copy the objects or they get edited unintentionally
184
+ await box.addAll(
185
+ profile.widgetProperties.map((e) => DataWidgetProperties.copy(e)));
186
187
connectionController.logs
188
.add(LogMessage(LogLevel.good, 'Profile loaded: ${profile.name}'));
0 commit comments