This commit is contained in:
Scott E. Graves 2025-03-14 21:12:10 -05:00
parent 04523df564
commit bc146a48a7

View File

@ -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)