init external notifs column

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2024-11-02 21:39:47 -04:00
parent 503b7edeb5
commit 529b76094c
5 changed files with 185 additions and 29 deletions

View File

@@ -196,7 +196,11 @@ impl<'a> DesktopSidePanel<'a> {
}
}
SidePanelAction::Columns => {
if router.routes().iter().any(|&r| r == Route::AddColumn) {
if router
.routes()
.iter()
.any(|&r| matches!(r, Route::AddColumn(_)))
{
router.go_back();
} else {
columns.new_column_picker();