mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-04-20 22:13:48 +00:00
persist discovered contacts when all are removed
This commit is contained in:
parent
a0efbbe4bd
commit
d53465d13b
2 changed files with 6 additions and 5 deletions
|
|
@ -4105,6 +4105,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||
|
||||
void removeAllDiscoveredContacts() {
|
||||
_discoveredContacts.clear();
|
||||
unawaited(_persistDiscoveredContacts());
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -959,11 +959,11 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
|||
|
||||
void _sendSettings(
|
||||
MeshCoreConnector connector,
|
||||
autoAddChat,
|
||||
autoAddRepeater,
|
||||
autoAddRoomServer,
|
||||
autoAddSensor,
|
||||
overwriteOldest,
|
||||
bool autoAddChat,
|
||||
bool autoAddRepeater,
|
||||
bool autoAddRoomServer,
|
||||
bool autoAddSensor,
|
||||
bool overwriteOldest,
|
||||
) async {
|
||||
final frame = buildSetAutoAddConfigFrame(
|
||||
autoAddChat: autoAddChat,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue