holder for ProfileState

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-01-03 17:40:19 -05:00
parent 5fd9f32ba7
commit 4ea17f8920

View File

@@ -1,7 +1,10 @@
use std::collections::HashMap;
use enostr::Pubkey;
use crate::deck_state::DeckState;
use crate::login_manager::AcquireKeyState;
use crate::profile_state::ProfileState;
/// Various state for views
#[derive(Default)]
@@ -10,6 +13,7 @@ pub struct ViewState {
pub id_to_deck_state: HashMap<egui::Id, DeckState>,
pub id_state_map: HashMap<egui::Id, AcquireKeyState>,
pub id_string_map: HashMap<egui::Id, String>,
pub pubkey_to_profile_state: HashMap<Pubkey, ProfileState>,
}
impl ViewState {