fix: return to sensors list after cancelling reposition only if you've arrived from there

This commit is contained in:
2026-05-18 19:27:08 +02:00
parent 74aeb3589b
commit c54631bcb6
3 changed files with 13 additions and 2 deletions
+4
View File
@@ -166,6 +166,10 @@ final tagProvider =
/// center-dot placement flow. Cleared on Place, Cancel, or back navigation.
final sensorPlacementProvider = StateProvider<Sensor?>((ref) => null);
/// True when placement mode was initiated from the sensors list tab.
/// Used by FloorPlanScreen to decide whether to navigate back on cancel.
final sensorPlacementOriginSensorsProvider = StateProvider<bool>((ref) => false);
final floorPlanModeProvider =
StateProvider<FloorPlanMode>((ref) => FloorPlanMode.view);