expose mode 3 in UI

This commit is contained in:
PacoX
2026-05-20 08:50:17 +02:00
parent 01d4f002f8
commit 945a118853
24 changed files with 369 additions and 5 deletions
+2 -1
View File
@@ -563,7 +563,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
void _editPathHashMode(BuildContext context, MeshCoreConnector connector) {
final l10n = context.l10n;
var selectedMode = (connector.pathHashByteWidth - 1).clamp(0, 2).toInt();
var selectedMode = (connector.pathHashByteWidth - 1).clamp(0, 3).toInt();
showDialog(
context: context,
@@ -584,6 +584,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
DropdownMenuItem(value: 0, child: Text('0 - 1 byte')),
DropdownMenuItem(value: 1, child: Text('1 - 2 bytes')),
DropdownMenuItem(value: 2, child: Text('2 - 3 bytes')),
DropdownMenuItem(value: 3, child: Text('3 - 4 bytes')),
],
onChanged: (value) {
if (value == null) return;