Skip to content

Commit

Permalink
Fix bug with storing devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jun 1, 2024
1 parent 7302d12 commit 0072713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Backend/Bluetooth/bluetooth_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class KnownDevices extends _$KnownDevices {
}

Future<void> store() async {
await HiveProxy.clear('devices');
await HiveProxy.addAll('devices', state.values.map((e) => e.baseStoredDevice));
await HiveProxy.clear<BaseStoredDevice>('devices');
await HiveProxy.addAll<BaseStoredDevice>('devices', state.values.map((e) => e.baseStoredDevice));
}
}

0 comments on commit 0072713

Please sign in to comment.