mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-18 06:40:52 +10:00
Merge pull request #358 from zjs81/followup-#275
small clean up from PR #275
This commit is contained in:
@@ -1162,7 +1162,6 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> {
|
|||||||
|
|
||||||
_clientRepeat = widget.connector.clientRepeat ?? false;
|
_clientRepeat = widget.connector.clientRepeat ?? false;
|
||||||
_selectedPresetIndex = _findMatchingPresetIndex();
|
_selectedPresetIndex = _findMatchingPresetIndex();
|
||||||
_lastNonRepeatSnapshot = _currentSnapshot();
|
|
||||||
if (_clientRepeat) {
|
if (_clientRepeat) {
|
||||||
_lastNonRepeatSnapshot =
|
_lastNonRepeatSnapshot =
|
||||||
_sessionRememberedNonRepeatSnapshot() ??
|
_sessionRememberedNonRepeatSnapshot() ??
|
||||||
@@ -1472,7 +1471,6 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!mounted) return;
|
if (!mounted) return;
|
||||||
Navigator.pop(context);
|
|
||||||
_logRadioSettingsState('Radio settings saved successfully');
|
_logRadioSettingsState('Radio settings saved successfully');
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(content: Text(l10n.settings_radioSettingsUpdated)),
|
SnackBar(content: Text(l10n.settings_radioSettingsUpdated)),
|
||||||
@@ -1484,6 +1482,7 @@ class _RadioSettingsDialogState extends State<_RadioSettingsDialog> {
|
|||||||
SnackBar(content: Text(l10n.settings_error(e.toString()))),
|
SnackBar(content: Text(l10n.settings_error(e.toString()))),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Navigator.pop(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
String _presetLabel(int? index) {
|
String _presetLabel(int? index) {
|
||||||
|
|||||||
Reference in New Issue
Block a user