This commit is contained in:
parent
678dfd6c8b
commit
492ccfbdfb
@ -193,13 +193,13 @@ class _AddMountScreenState extends State<AddMountScreen> {
|
|||||||
|
|
||||||
void _handleChange(String mountType) {
|
void _handleChange(String mountType) {
|
||||||
setState(() {
|
setState(() {
|
||||||
final changedFromSia = _mountType != mountType && mountType == 'Sia';
|
final changed = _mountType != mountType;
|
||||||
|
|
||||||
_mountType = mountType;
|
_mountType = mountType;
|
||||||
_mountNameController.text =
|
_mountNameController.text =
|
||||||
(mountType == 'Sia' && _mountNameController.text.isEmpty)
|
(mountType == 'Sia' && changed)
|
||||||
? 'default'
|
? 'default'
|
||||||
: changedFromSia
|
: changed
|
||||||
? ''
|
? ''
|
||||||
: _mountNameController.text;
|
: _mountNameController.text;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user