mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
Fixed statistics config updated text
This commit is contained in:
parent
0821fd4e0e
commit
9de9b0afec
3 changed files with 8 additions and 4 deletions
|
@ -145,19 +145,19 @@ class _StatisticsSettingsState extends State<StatisticsSettings> {
|
|||
|
||||
processModal.close();
|
||||
|
||||
if (!mounted) return;
|
||||
if (!context.mounted) return;
|
||||
|
||||
if (result.successful == true) {
|
||||
showSnacbkar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.logsConfigUpdated,
|
||||
label: AppLocalizations.of(context)!.statisticsConfigUpdated,
|
||||
color: Colors.green
|
||||
);
|
||||
}
|
||||
else {
|
||||
showSnacbkar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.logsConfigNotUpdated,
|
||||
label: AppLocalizations.of(context)!.statisticsConfigNotUpdated,
|
||||
color: Colors.red
|
||||
);
|
||||
}
|
||||
|
@ -209,7 +209,7 @@ class _StatisticsSettingsState extends State<StatisticsSettings> {
|
|||
if (value != null && value != "custom") {
|
||||
_customTimeError = null;
|
||||
_customTimeController.text = "";
|
||||
};
|
||||
}
|
||||
_retentionTime = value;
|
||||
}),
|
||||
decoration: InputDecoration(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue