fix
This commit is contained in:
parent
04523df564
commit
bc146a48a7
@ -197,11 +197,14 @@ class _AddMountScreenState extends State<AddMountScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setState(() {
|
setState(() {
|
||||||
|
final changed = _mountType != mountType;
|
||||||
_mountType = mountType;
|
_mountType = mountType;
|
||||||
_mountNameController.text =
|
_mountNameController.text =
|
||||||
(mountType == 'Sia' && _mountNameController.text.isEmpty)
|
(mountType == 'Sia' && _mountNameController.text.isEmpty)
|
||||||
? 'default'
|
? 'default'
|
||||||
: '';
|
: changed
|
||||||
|
? ''
|
||||||
|
: _mountNameController.text;
|
||||||
|
|
||||||
_mount =
|
_mount =
|
||||||
(_mountNameController.text.isEmpty)
|
(_mountNameController.text.isEmpty)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user