This commit is contained in:
Scott E. Graves 2025-03-14 21:17:37 -05:00
parent bc146a48a7
commit 678dfd6c8b

View File

@ -192,17 +192,14 @@ class _AddMountScreenState extends State<AddMountScreen> {
}
void _handleChange(String mountType) {
if (_mountType == mountType) {
return;
}
setState(() {
final changed = _mountType != mountType;
final changedFromSia = _mountType != mountType && mountType == 'Sia';
_mountType = mountType;
_mountNameController.text =
(mountType == 'Sia' && _mountNameController.text.isEmpty)
? 'default'
: changed
: changedFromSia
? ''
: _mountNameController.text;