route: add CloseSheetThenRoute RouterAction

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-10-04 17:20:25 -04:00
parent 3c5bab24ba
commit 872bd35142

View File

@@ -363,6 +363,7 @@ pub enum RouterAction {
/// chrome atm /// chrome atm
PfpClicked, PfpClicked,
RouteTo(Route, RouterType), RouteTo(Route, RouterType),
CloseSheetThenRoute(Route),
Overlay { Overlay {
route: Route, route: Route,
make_new: bool, make_new: bool,
@@ -427,6 +428,11 @@ impl RouterAction {
} }
None None
} }
RouterAction::CloseSheetThenRoute(route) => {
sheet_router.go_back();
sheet_router.after_action = Some(route);
None
}
} }
} }