commit 872bd35142a29ee0cf6377a13e41efa7c6cf76d7
parent 3c5bab24ba88abe44bde8183694226119e3b25ea
Author: kernelkind <kernelkind@gmail.com>
Date: Sat, 4 Oct 2025 17:20:25 -0400
route: add CloseSheetThenRoute `RouterAction`
Signed-off-by: kernelkind <kernelkind@gmail.com>
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/crates/notedeck_columns/src/nav.rs b/crates/notedeck_columns/src/nav.rs
@@ -363,6 +363,7 @@ pub enum RouterAction {
/// chrome atm
PfpClicked,
RouteTo(Route, RouterType),
+ CloseSheetThenRoute(Route),
Overlay {
route: Route,
make_new: bool,
@@ -427,6 +428,11 @@ impl RouterAction {
}
None
}
+ RouterAction::CloseSheetThenRoute(route) => {
+ sheet_router.go_back();
+ sheet_router.after_action = Some(route);
+ None
+ }
}
}