mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-09-18 15:46:41 +00:00
fix selecting pinhole profile
This commit is contained in:
parent
488d30e28e
commit
424e4b4d29
1 changed files with 4 additions and 2 deletions
|
@ -38,8 +38,10 @@ class EquipmentProfilesProviderState extends State<EquipmentProfilesProvider> {
|
||||||
final TogglableMap<PinholeEquipmentProfile> _pinholeCustomProfiles = {};
|
final TogglableMap<PinholeEquipmentProfile> _pinholeCustomProfiles = {};
|
||||||
String _selectedId = '';
|
String _selectedId = '';
|
||||||
|
|
||||||
EquipmentProfile get _selectedProfile =>
|
IEquipmentProfile get _selectedProfile =>
|
||||||
_customProfiles[_selectedId]?.value ?? EquipmentProfilesProvider.defaultProfile;
|
_customProfiles[_selectedId]?.value ??
|
||||||
|
_pinholeCustomProfiles[_selectedId]?.value ??
|
||||||
|
EquipmentProfilesProvider.defaultProfile;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
|
|
Loading…
Reference in a new issue