mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
Bugs fixed
This commit is contained in:
parent
c1950fdc2b
commit
1ea71265e2
6 changed files with 54 additions and 36 deletions
|
@ -70,7 +70,7 @@ class _ClientsListState extends State<ClientsList> {
|
|||
|
||||
Future refetchClients() async {
|
||||
final result = await clientsProvider.fetchClients();
|
||||
if (result == false) {
|
||||
if (result == false && mounted) {
|
||||
showSnacbkar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.clientsNotLoaded,
|
||||
|
|
|
@ -24,6 +24,7 @@ class AdvancedSettings extends StatelessWidget {
|
|||
required Future Function(bool) function
|
||||
}) async {
|
||||
final result = await function(newStatus);
|
||||
if (!context.mounted) return;
|
||||
if (result == true) {
|
||||
showSnacbkar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue