Merge pull request #358 from zjs81/followup-#275

small clean up from PR #275
This commit is contained in:
Ded 2026-04-08 10:31:17 -07:00 committed by GitHub
commit 5ea044af10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1162,7 +1162,6 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> {
_clientRepeat = widget.connector.clientRepeat ?? false;
_selectedPresetIndex = _findMatchingPresetIndex();
_lastNonRepeatSnapshot = _currentSnapshot();
if (_clientRepeat) {
_lastNonRepeatSnapshot =
_sessionRememberedNonRepeatSnapshot() ??
@ -1472,7 +1471,6 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> {
}
if (!mounted) return;
Navigator.pop(context);
_logRadioSettingsState('Radio settings saved successfully');
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text(l10n.settings_radioSettingsUpdated)),
@ -1484,6 +1482,7 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> {
SnackBar(content: Text(l10n.settings_error(e.toString()))),
);
}
Navigator.pop(context);
}
String _presetLabel(int? index) {