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
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
}
}
}