notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 3c5bab24ba88abe44bde8183694226119e3b25ea
parent e20861f8d677f48eac16afeb725f15521f6be66f
Author: kernelkind <kernelkind@gmail.com>
Date:   Sat,  4 Oct 2025 17:18:32 -0400

add `after_action` to `SingletonRouter`

Signed-off-by: kernelkind <kernelkind@gmail.com>

Diffstat:
Mcrates/notedeck_columns/src/route.rs | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/crates/notedeck_columns/src/route.rs b/crates/notedeck_columns/src/route.rs @@ -627,6 +627,7 @@ pub struct SingletonRouter<R: Clone> { route: Option<R>, pub returning: bool, pub navigating: bool, + pub after_action: Option<R>, } impl<R: Clone> SingletonRouter<R> { @@ -640,8 +641,7 @@ impl<R: Clone> SingletonRouter<R> { } pub fn clear(&mut self) { - self.route = None; - self.returning = false; + *self = Self::default(); } pub fn route(&self) -> &Option<R> { @@ -655,6 +655,7 @@ impl<R: Clone> Default for SingletonRouter<R> { route: None, returning: false, navigating: false, + after_action: None, } } }