mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-11 19:17:04 +10:00
persist discovered contacts when all are removed
This commit is contained in:
@@ -4105,6 +4105,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
|
|
||||||
void removeAllDiscoveredContacts() {
|
void removeAllDiscoveredContacts() {
|
||||||
_discoveredContacts.clear();
|
_discoveredContacts.clear();
|
||||||
|
unawaited(_persistDiscoveredContacts());
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -959,11 +959,11 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
|||||||
|
|
||||||
void _sendSettings(
|
void _sendSettings(
|
||||||
MeshCoreConnector connector,
|
MeshCoreConnector connector,
|
||||||
autoAddChat,
|
bool autoAddChat,
|
||||||
autoAddRepeater,
|
bool autoAddRepeater,
|
||||||
autoAddRoomServer,
|
bool autoAddRoomServer,
|
||||||
autoAddSensor,
|
bool autoAddSensor,
|
||||||
overwriteOldest,
|
bool overwriteOldest,
|
||||||
) async {
|
) async {
|
||||||
final frame = buildSetAutoAddConfigFrame(
|
final frame = buildSetAutoAddConfigFrame(
|
||||||
autoAddChat: autoAddChat,
|
autoAddChat: autoAddChat,
|
||||||
|
|||||||
Reference in New Issue
Block a user