pop sidebar before pushing notif page

This commit is contained in:
Henry Hiles 2026-09-26 20:32:44 -04:00
commit bab699658f
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -192,7 +192,9 @@ class const Sidebar({required final bool isDesktop, super.key})
),
IconButton(
tooltip: "Open notifications",
onPressed: () => Navigator.of(context).push(
onPressed: () => Navigator.of(context)
..pop()
..push(
MaterialPageRoute(
builder: (_) => NotificationsPage(),
),