From 2e9a00ee57a127f566bad1d1f9356cae2d8f26ce Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 29 Nov 2024 09:53:27 -0800 Subject: [PATCH] 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 --- src/app.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index 75c20b44..e9d11fc7 100644 --- 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()));