commit 929099c15f143b6a5f18825fa5d774d5e9965288
parent e7c3755a08fea9a936efbebb995ab97c19bad92a
Author: kernelkind <kernelkind@gmail.com>
Date: Tue, 29 Apr 2025 13:25:17 -0400
propagate `Images` to actionbar
Signed-off-by: kernelkind <kernelkind@gmail.com>
Diffstat:
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/crates/notedeck_chrome/src/chrome.rs b/crates/notedeck_chrome/src/chrome.rs
@@ -516,6 +516,7 @@ fn chrome_handle_app_action(
ctx.accounts,
ctx.global_wallet,
ctx.zaps,
+ ctx.img_cache,
ui,
);
}
diff --git a/crates/notedeck_columns/src/actionbar.rs b/crates/notedeck_columns/src/actionbar.rs
@@ -7,8 +7,8 @@ use crate::{
use enostr::{Pubkey, RelayPool};
use nostrdb::{Ndb, NoteKey, Transaction};
use notedeck::{
- get_wallet_for_mut, note::ZapTargetAmount, Accounts, GlobalWallet, NoteAction, NoteCache,
- NoteZapTargetOwned, UnknownIds, ZapAction, ZapTarget, ZappingError, Zaps,
+ get_wallet_for_mut, note::ZapTargetAmount, Accounts, GlobalWallet, Images, NoteAction,
+ NoteCache, NoteZapTargetOwned, UnknownIds, ZapAction, ZapTarget, ZappingError, Zaps,
};
use tracing::error;
@@ -34,6 +34,7 @@ fn execute_note_action(
accounts: &mut Accounts,
global_wallet: &mut GlobalWallet,
zaps: &mut Zaps,
+ _images: &mut Images,
ui: &mut egui::Ui,
) -> Option<TimelineOpenResult> {
match action {
@@ -133,6 +134,7 @@ pub fn execute_and_process_note_action(
accounts: &mut Accounts,
global_wallet: &mut GlobalWallet,
zaps: &mut Zaps,
+ images: &mut Images,
ui: &mut egui::Ui,
) {
let router = columns.column_mut(col).router_mut();
@@ -147,6 +149,7 @@ pub fn execute_and_process_note_action(
accounts,
global_wallet,
zaps,
+ images,
ui,
) {
br.process(ndb, note_cache, txn, timeline_cache, unknown_ids);
diff --git a/crates/notedeck_columns/src/nav.rs b/crates/notedeck_columns/src/nav.rs
@@ -192,6 +192,7 @@ impl RenderNavResponse {
ctx.accounts,
ctx.global_wallet,
ctx.zaps,
+ ctx.img_cache,
ui,
);
}