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>
This commit is contained in:
@@ -19,7 +19,7 @@ use crate::{
|
|||||||
support::Support,
|
support::Support,
|
||||||
thread::Thread,
|
thread::Thread,
|
||||||
timeline::{self, Timeline, TimelineKind},
|
timeline::{self, Timeline, TimelineKind},
|
||||||
ui::{self, DesktopSidePanel},
|
ui::{self, add_column::AddColumnRoute, DesktopSidePanel},
|
||||||
unknowns::UnknownIds,
|
unknowns::UnknownIds,
|
||||||
view_state::ViewState,
|
view_state::ViewState,
|
||||||
Result,
|
Result,
|
||||||
@@ -893,7 +893,11 @@ fn set_demo(
|
|||||||
accounts.select_account(0);
|
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))
|
let timeline = TimelineKind::contact_list(timeline::PubkeySource::Explicit(demo_pubkey))
|
||||||
.into_timeline(ndb, Some(demo_pubkey.bytes()));
|
.into_timeline(ndb, Some(demo_pubkey.bytes()));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user