holder for ProfileState
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
|
use enostr::Pubkey;
|
||||||
|
|
||||||
use crate::deck_state::DeckState;
|
use crate::deck_state::DeckState;
|
||||||
use crate::login_manager::AcquireKeyState;
|
use crate::login_manager::AcquireKeyState;
|
||||||
|
use crate::profile_state::ProfileState;
|
||||||
|
|
||||||
/// Various state for views
|
/// Various state for views
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
@@ -10,6 +13,7 @@ pub struct ViewState {
|
|||||||
pub id_to_deck_state: HashMap<egui::Id, DeckState>,
|
pub id_to_deck_state: HashMap<egui::Id, DeckState>,
|
||||||
pub id_state_map: HashMap<egui::Id, AcquireKeyState>,
|
pub id_state_map: HashMap<egui::Id, AcquireKeyState>,
|
||||||
pub id_string_map: HashMap<egui::Id, String>,
|
pub id_string_map: HashMap<egui::Id, String>,
|
||||||
|
pub pubkey_to_profile_state: HashMap<Pubkey, ProfileState>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ViewState {
|
impl ViewState {
|
||||||
|
|||||||
Reference in New Issue
Block a user