Allow overriding contact name

This commit is contained in:
Janez T
2026-03-13 10:16:04 +01:00
parent 5e404944e9
commit 1e70f52069
30 changed files with 2251 additions and 381 deletions

View File

@@ -1627,6 +1627,22 @@ class ConnectionProvider with ChangeNotifier {
}
}
Future<void> factoryResetDevice() async {
if (!_activeService.isConnected) {
_error = 'Not connected to device';
notifyListeners();
return;
}
try {
_error = null;
await _activeService.factoryReset();
} catch (e) {
_error = 'Failed to wipe device data: $e';
notifyListeners();
}
}
/// Set advertised name
Future<void> setAdvertName(String name) async {
if (!_activeService.isConnected) {