mirror of
https://github.com/damus-io/notedeck.git
synced 2024-09-18 21:03:31 +00:00
tidy: organize bools
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
21fd57f2c5
commit
ae6c05ab42
@ -41,15 +41,11 @@ pub enum DamusState {
|
||||
/// We derive Deserialize/Serialize so we can persist app state on shutdown.
|
||||
pub struct Damus {
|
||||
state: DamusState,
|
||||
//compose: String,
|
||||
note_cache: NoteCache,
|
||||
pub pool: RelayPool,
|
||||
is_mobile: bool,
|
||||
pub since_optimize: bool,
|
||||
|
||||
/// global navigation for account management popups, etc.
|
||||
pub global_nav: Vec<Route>,
|
||||
pub textmode: bool,
|
||||
|
||||
pub timelines: Vec<Timeline>,
|
||||
pub selected_timeline: i32,
|
||||
@ -61,6 +57,11 @@ pub struct Damus {
|
||||
pub account_manager: AccountManager,
|
||||
|
||||
frame_history: crate::frame_history::FrameHistory,
|
||||
|
||||
// TODO: make these flags
|
||||
is_mobile: bool,
|
||||
pub since_optimize: bool,
|
||||
pub textmode: bool,
|
||||
pub show_account_switcher: bool,
|
||||
pub show_global_popup: bool,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user