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