rename ImageCache -> MediaCache

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-02-15 23:06:45 -05:00
parent bf68eb3ea8
commit 4f4a0feb8c
26 changed files with 94 additions and 94 deletions

View File

@@ -3,14 +3,14 @@ use egui::{
Align, Button, Frame, Image, InnerResponse, Layout, RichText, ScrollArea, Ui, UiBuilder, Vec2,
};
use nostrdb::{Ndb, Transaction};
use notedeck::{Accounts, ImageCache};
use notedeck::{Accounts, MediaCache};
use super::profile::preview::SimpleProfilePreview;
pub struct AccountsView<'a> {
ndb: &'a Ndb,
accounts: &'a Accounts,
img_cache: &'a mut ImageCache,
img_cache: &'a mut MediaCache,
}
#[derive(Clone, Debug)]
@@ -27,7 +27,7 @@ enum ProfilePreviewAction {
}
impl<'a> AccountsView<'a> {
pub fn new(ndb: &'a Ndb, accounts: &'a Accounts, img_cache: &'a mut ImageCache) -> Self {
pub fn new(ndb: &'a Ndb, accounts: &'a Accounts, img_cache: &'a mut MediaCache) -> Self {
AccountsView {
ndb,
accounts,
@@ -54,7 +54,7 @@ impl<'a> AccountsView<'a> {
ui: &mut Ui,
accounts: &Accounts,
ndb: &Ndb,
img_cache: &mut ImageCache,
img_cache: &mut MediaCache,
) -> Option<AccountsViewResponse> {
let mut return_op: Option<AccountsViewResponse> = None;
ui.allocate_ui_with_layout(