From 81dbffd031480534a1e884f106e6b2de01f9f05d Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Tue, 24 Feb 2026 15:58:27 -0500 Subject: [PATCH] chore: hide previos error snackbar in settings notifications before showing another one (#5802) --- .../settings_notifications/settings_notifications.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/pages/settings_notifications/settings_notifications.dart b/lib/pages/settings_notifications/settings_notifications.dart index dd1a67577..e03232915 100644 --- a/lib/pages/settings_notifications/settings_notifications.dart +++ b/lib/pages/settings_notifications/settings_notifications.dart @@ -81,6 +81,9 @@ class SettingsNotificationsController extends State { } catch (e, s) { Logs().w('Unable to toggle push rule', e, s); if (!mounted) return; + // #Pangea + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + // Pangea# ScaffoldMessenger.of( context, ).showSnackBar(SnackBar(content: Text(e.toLocalizedString(context)))); @@ -165,6 +168,9 @@ class SettingsNotificationsController extends State { } catch (e, s) { Logs().w('Unable to delete push rule', e, s); if (!mounted) return; + // #Pangea + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + // Pangea# ScaffoldMessenger.of( context, ).showSnackBar(SnackBar(content: Text(e.toLocalizedString(context))));