From 0072713c095bbebea448b87bb167469f5d806311 Mon Sep 17 00:00:00 2001 From: Codel1417 Date: Sat, 1 Jun 2024 13:54:31 -0400 Subject: [PATCH] Fix bug with storing devices --- lib/Backend/Bluetooth/bluetooth_manager.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Backend/Bluetooth/bluetooth_manager.dart b/lib/Backend/Bluetooth/bluetooth_manager.dart index 21541ca2..bd238498 100644 --- a/lib/Backend/Bluetooth/bluetooth_manager.dart +++ b/lib/Backend/Bluetooth/bluetooth_manager.dart @@ -50,7 +50,7 @@ class KnownDevices extends _$KnownDevices { } Future store() async { - await HiveProxy.clear('devices'); - await HiveProxy.addAll('devices', state.values.map((e) => e.baseStoredDevice)); + await HiveProxy.clear('devices'); + await HiveProxy.addAll('devices', state.values.map((e) => e.baseStoredDevice)); } }