notedeck

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

commit 0b8a4fdf559ced0e21e9856df2f067d82c29c9f9
parent 8263e56f41caa7249691c90981310cdc7d41f856
Author: kernelkind <kernelkind@gmail.com>
Date:   Thu, 17 Jul 2025 20:22:48 -0400

move select account logic to own method

Signed-off-by: kernelkind <kernelkind@gmail.com>

Diffstat:
Mcrates/notedeck/src/account/accounts.rs | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/crates/notedeck/src/account/accounts.rs b/crates/notedeck/src/account/accounts.rs @@ -212,6 +212,18 @@ impl Accounts { return; } + self.select_account_internal(pk_to_select, ndb, txn, pool, ctx); + } + + /// Have already selected in `AccountCache`, updating other things + fn select_account_internal( + &mut self, + pk_to_select: &Pubkey, + ndb: &mut Ndb, + txn: &Transaction, + pool: &mut RelayPool, + ctx: &egui::Context, + ) { if let Some(key_store) = &self.storage_writer { if let Err(e) = key_store.select_key(Some(*pk_to_select)) { tracing::error!("Could not select key {:?}: {e}", pk_to_select);