Compare commits
2 Commits
bc146a48a7
...
492ccfbdfb
Author | SHA1 | Date | |
---|---|---|---|
492ccfbdfb | |||
678dfd6c8b |
@ -192,15 +192,12 @@ class _AddMountScreenState extends State<AddMountScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _handleChange(String mountType) {
|
void _handleChange(String mountType) {
|
||||||
if (_mountType == mountType) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
setState(() {
|
setState(() {
|
||||||
final changed = _mountType != mountType;
|
final changed = _mountType != mountType;
|
||||||
|
|
||||||
_mountType = mountType;
|
_mountType = mountType;
|
||||||
_mountNameController.text =
|
_mountNameController.text =
|
||||||
(mountType == 'Sia' && _mountNameController.text.isEmpty)
|
(mountType == 'Sia' && changed)
|
||||||
? 'default'
|
? 'default'
|
||||||
: changed
|
: changed
|
||||||
? ''
|
? ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user