From ae6c05ab422a6871ad746cf72570b3d70615eeb9 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 30 Aug 2024 06:29:51 -0700 Subject: [PATCH] tidy: organize bools Signed-off-by: William Casarin --- src/app.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app.rs b/src/app.rs index c14a689..293329b 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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, - pub textmode: bool, pub timelines: Vec, 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, }