mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-19 01:24:21 +01:00
wallet: remove unused flag in note context
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -28,7 +28,6 @@ pub struct NoteContext<'d> {
|
|||||||
pub job_pool: &'d mut JobPool,
|
pub job_pool: &'d mut JobPool,
|
||||||
pub unknown_ids: &'d mut UnknownIds,
|
pub unknown_ids: &'d mut UnknownIds,
|
||||||
pub clipboard: &'d mut egui_winit::clipboard::Clipboard,
|
pub clipboard: &'d mut egui_winit::clipboard::Clipboard,
|
||||||
pub current_account_has_wallet: bool,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Eq, PartialEq, Copy, Clone, Hash)]
|
#[derive(Debug, Eq, PartialEq, Copy, Clone, Hash)]
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ use egui_nav::{Nav, NavAction, NavResponse, NavUiType, Percent, PopupResponse, P
|
|||||||
use enostr::ProfileState;
|
use enostr::ProfileState;
|
||||||
use nostrdb::{Filter, Ndb, Transaction};
|
use nostrdb::{Filter, Ndb, Transaction};
|
||||||
use notedeck::{
|
use notedeck::{
|
||||||
get_current_default_msats, get_current_wallet, tr, ui::is_narrow, Accounts, AppContext,
|
get_current_default_msats, tr, ui::is_narrow, Accounts, AppContext, NoteAction, NoteContext,
|
||||||
NoteAction, NoteContext, RelayAction,
|
RelayAction,
|
||||||
};
|
};
|
||||||
use tracing::error;
|
use tracing::error;
|
||||||
|
|
||||||
@@ -503,7 +503,6 @@ fn render_nav_body(
|
|||||||
col: usize,
|
col: usize,
|
||||||
inner_rect: egui::Rect,
|
inner_rect: egui::Rect,
|
||||||
) -> Option<RenderNavAction> {
|
) -> Option<RenderNavAction> {
|
||||||
let current_account_has_wallet = get_current_wallet(ctx.accounts, ctx.global_wallet).is_some();
|
|
||||||
let mut note_context = NoteContext {
|
let mut note_context = NoteContext {
|
||||||
ndb: ctx.ndb,
|
ndb: ctx.ndb,
|
||||||
accounts: ctx.accounts,
|
accounts: ctx.accounts,
|
||||||
@@ -514,7 +513,6 @@ fn render_nav_body(
|
|||||||
job_pool: ctx.job_pool,
|
job_pool: ctx.job_pool,
|
||||||
unknown_ids: ctx.unknown_ids,
|
unknown_ids: ctx.unknown_ids,
|
||||||
clipboard: ctx.clipboard,
|
clipboard: ctx.clipboard,
|
||||||
current_account_has_wallet,
|
|
||||||
i18n: ctx.i18n,
|
i18n: ctx.i18n,
|
||||||
};
|
};
|
||||||
match top {
|
match top {
|
||||||
|
|||||||
@@ -808,7 +808,6 @@ mod preview {
|
|||||||
pool: app.pool,
|
pool: app.pool,
|
||||||
job_pool: app.job_pool,
|
job_pool: app.job_pool,
|
||||||
unknown_ids: app.unknown_ids,
|
unknown_ids: app.unknown_ids,
|
||||||
current_account_has_wallet: false,
|
|
||||||
clipboard: app.clipboard,
|
clipboard: app.clipboard,
|
||||||
i18n: app.i18n,
|
i18n: app.i18n,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -219,7 +219,6 @@ impl<'a> DaveUi<'a> {
|
|||||||
job_pool: ctx.job_pool,
|
job_pool: ctx.job_pool,
|
||||||
unknown_ids: ctx.unknown_ids,
|
unknown_ids: ctx.unknown_ids,
|
||||||
clipboard: ctx.clipboard,
|
clipboard: ctx.clipboard,
|
||||||
current_account_has_wallet: false,
|
|
||||||
i18n: ctx.i18n,
|
i18n: ctx.i18n,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user