mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-19 01:24:21 +01:00
route: add CloseSheetThenRoute RouterAction
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user