mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +00:00
Fixed film discard on ISO change
This commit is contained in:
parent
1a64ef987b
commit
ad8f0d895a
1 changed files with 2 additions and 1 deletions
|
@ -109,8 +109,8 @@ class MeteringBloc extends Bloc<MeteringEvent, MeteringState> {
|
||||||
|
|
||||||
void _onFilmChanged(FilmChangedEvent event, Emitter emit) {
|
void _onFilmChanged(FilmChangedEvent event, Emitter emit) {
|
||||||
if (_film.name != event.data.name) {
|
if (_film.name != event.data.name) {
|
||||||
_film = event.data;
|
|
||||||
_meteringInteractor.film = event.data;
|
_meteringInteractor.film = event.data;
|
||||||
|
_film = event.data;
|
||||||
|
|
||||||
/// If user selects 'Other' film we preserve currently selected ISO
|
/// If user selects 'Other' film we preserve currently selected ISO
|
||||||
/// and therefore only discard reciprocity formula
|
/// and therefore only discard reciprocity formula
|
||||||
|
@ -131,6 +131,7 @@ class MeteringBloc extends Bloc<MeteringEvent, MeteringState> {
|
||||||
/// Discard currently selected film even if ISO is the same,
|
/// Discard currently selected film even if ISO is the same,
|
||||||
/// because, for example, Fomapan 400 and any Ilford 400
|
/// because, for example, Fomapan 400 and any Ilford 400
|
||||||
/// have different reciprocity formulas
|
/// have different reciprocity formulas
|
||||||
|
_meteringInteractor.film = Film.values.first;
|
||||||
_film = Film.values.first;
|
_film = Film.values.first;
|
||||||
|
|
||||||
if (_iso != event.isoValue) {
|
if (_iso != event.isoValue) {
|
||||||
|
|
Loading…
Reference in a new issue