Files
notedeck/src/view_state.rs
William Casarin 36c0971fd9 Flexible routing
Another massive refactor to change the way routing works. Now any
column can route anywhere.

Also things are generally just much better and more modular via the
new struct split borrowing technique.

I didn't even try to split this into smaller commits for my sanity.

Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-16 14:50:20 -07:00

14 lines
241 B
Rust

use crate::login_manager::LoginState;
/// Various state for views
#[derive(Default)]
pub struct ViewState {
pub login: LoginState,
}
impl ViewState {
pub fn login_mut(&mut self) -> &mut LoginState {
&mut self.login
}
}