mirror of
https://github.com/aljazceru/notedeck.git
synced 2026-01-06 09:54:20 +01:00
don't show zap button if no wallet
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -27,7 +27,7 @@ use crate::{
|
||||
|
||||
use egui_nav::{Nav, NavAction, NavResponse, NavUiType};
|
||||
use nostrdb::Transaction;
|
||||
use notedeck::{AccountsAction, AppContext, NoteAction, NoteContext};
|
||||
use notedeck::{get_current_wallet, AccountsAction, AppContext, NoteAction, NoteContext};
|
||||
use notedeck_ui::View;
|
||||
use tracing::error;
|
||||
|
||||
@@ -277,6 +277,7 @@ fn render_nav_body(
|
||||
zaps: ctx.zaps,
|
||||
pool: ctx.pool,
|
||||
job_pool: ctx.job_pool,
|
||||
current_account_has_wallet: get_current_wallet(ctx.accounts, ctx.global_wallet).is_some(),
|
||||
};
|
||||
match top {
|
||||
Route::Timeline(kind) => render_timeline_route(
|
||||
|
||||
Reference in New Issue
Block a user