mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
fix: Preserve custom path priority
This commit is contained in:
@@ -825,6 +825,7 @@ class ContactTile extends StatelessWidget {
|
||||
return;
|
||||
}
|
||||
|
||||
await pathHistoryService.clearManualRouteFor(contact.publicKeyHex);
|
||||
if (context.mounted) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
@@ -855,6 +856,7 @@ class ContactTile extends StatelessWidget {
|
||||
outPath: Uint8List.fromList(parsedRoute.paddedPathBytes),
|
||||
),
|
||||
);
|
||||
await pathHistoryService.setManualRouteForContact(contact, parsedRoute);
|
||||
if (context.mounted) {
|
||||
final routeLabel = parsedRoute.hopCount == 0
|
||||
? AppLocalizations.of(context)!.direct
|
||||
|
||||
Reference in New Issue
Block a user