From ad8f0d895af207f780551e4768d35a81b9bf86cc Mon Sep 17 00:00:00 2001 From: Vadim Date: Thu, 8 Jun 2023 10:23:16 +0200 Subject: [PATCH] Fixed film discard on ISO change --- lib/screens/metering/bloc_metering.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/screens/metering/bloc_metering.dart b/lib/screens/metering/bloc_metering.dart index 34d5a3c..4ebe422 100644 --- a/lib/screens/metering/bloc_metering.dart +++ b/lib/screens/metering/bloc_metering.dart @@ -109,8 +109,8 @@ class MeteringBloc extends Bloc { void _onFilmChanged(FilmChangedEvent event, Emitter emit) { if (_film.name != event.data.name) { - _film = event.data; _meteringInteractor.film = event.data; + _film = event.data; /// If user selects 'Other' film we preserve currently selected ISO /// and therefore only discard reciprocity formula @@ -131,6 +131,7 @@ class MeteringBloc extends Bloc { /// Discard currently selected film even if ISO is the same, /// because, for example, Fomapan 400 and any Ilford 400 /// have different reciprocity formulas + _meteringInteractor.film = Film.values.first; _film = Film.values.first; if (_iso != event.isoValue) {