small fixups

This commit is contained in:
Henry Hiles 2026-09-26 21:11:11 -04:00
commit e300f4efc9
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
4 changed files with 21 additions and 17 deletions

View file

@ -192,13 +192,14 @@ class const Sidebar({required final bool isDesktop, super.key})
),
IconButton(
tooltip: "Open notifications",
onPressed: () => Navigator.of(context)
..pop()
..push(
onPressed: () {
if (!isDesktop) Navigator.of(context).pop();
Navigator.of(context).push(
MaterialPageRoute(
builder: (_) => NotificationsPage(),
),
),
);
},
icon: Icon(Icons.notifications),
),
IconButton(