notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 63d0a622f1e092a0d0bac648f4d008774c82754d
parent 22e67c95ccb7e378b506b48b502116f3cd18d4e0
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 18 Nov 2024 18:16:32 -0800

onboarding: show account login route on first open

Instead of only new columns, show login route on first open.

We will also add a demo column.

Changelog-Changed: Show login column on first open
Fixes: https://github.com/damus-io/notedeck/issues/440

Diffstat:
Msrc/app.rs | 13+++++++++----
1 file changed, 9 insertions(+), 4 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, @@ -490,9 +490,14 @@ impl Damus { let debug = parsed_args.debug; if columns.columns().is_empty() { - columns.add_column(Column::new(vec![Route::Accounts( - AccountsRoute::AddAccount, - )])); + if accounts.get_accounts().is_empty() { + columns.add_column(Column::new(vec![ + Route::AddColumn(AddColumnRoute::Base), + Route::Accounts(AccountsRoute::AddAccount), + ])); + } else { + columns.new_column_picker(); + } } let app_rect_handler = AppSizeHandler::new(&path);