Fix local node close snackbar localization
This commit is contained in:
+6
-1
@@ -290,8 +290,13 @@ class _PeyaAppState extends ConsumerState<PeyaApp> {
|
||||
final stopped = await localNodeService.stop();
|
||||
if (!stopped) {
|
||||
if (mounted) {
|
||||
final l10n = AppLocalizations.of(context);
|
||||
_scaffoldMessengerKey.currentState?.showSnackBar(
|
||||
SnackBar(content: Text(context.l10n.localNodeStopFailure)),
|
||||
SnackBar(
|
||||
content: Text(
|
||||
l10n?.localNodeStopFailure ?? 'Failed to stop local node',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user