commit 2e9a00ee57a127f566bad1d1f9356cae2d8f26ce
parent e3ed744a5c63146a14f0a8643d2a47ae6d62dbe1
Author: William Casarin <jb55@jb55.com>
Date: Fri, 29 Nov 2024 09:53:27 -0800
demo: ensure we have a base column
This allows you to set your first column as your own home timeline
without having to re-arrange anything
Fixes: 62a85d921c1f ("use demo config when no accs")
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/app.rs b/src/app.rs
@@ -19,7 +19,7 @@ use crate::{
support::Support,
thread::Thread,
timeline::{self, Timeline, TimelineKind},
- ui::{self, DesktopSidePanel},
+ ui::{self, add_column::AddColumnRoute, DesktopSidePanel},
unknowns::UnknownIds,
view_state::ViewState,
Result,
@@ -893,7 +893,11 @@ fn set_demo(
accounts.select_account(0);
}
- columns.add_column(Column::new(vec![Route::Accounts(AccountsRoute::Accounts)]));
+ columns.add_column(Column::new(vec![
+ Route::AddColumn(AddColumnRoute::Base),
+ Route::Accounts(AccountsRoute::Accounts),
+ ]));
+
let timeline = TimelineKind::contact_list(timeline::PubkeySource::Explicit(demo_pubkey))
.into_timeline(ndb, Some(demo_pubkey.bytes()));