From 678dfd6c8ba86a058373f73f4c6aa658fc0d314e Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 14 Mar 2025 21:17:37 -0500 Subject: [PATCH] fix --- web/repertory/lib/screens/add_mount_screen.dart | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/web/repertory/lib/screens/add_mount_screen.dart b/web/repertory/lib/screens/add_mount_screen.dart index d08c9225..109a7cc5 100644 --- a/web/repertory/lib/screens/add_mount_screen.dart +++ b/web/repertory/lib/screens/add_mount_screen.dart @@ -192,17 +192,14 @@ class _AddMountScreenState extends State { } 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;