integrate RelayDebugView

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-01-01 15:47:40 -05:00
parent d88036ecba
commit efa0bfcca1
2 changed files with 12 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ use notedeck::{
use enostr::RelayPool; use enostr::RelayPool;
use nostrdb::{Config, Ndb, Transaction}; use nostrdb::{Config, Ndb, Transaction};
use notedeck_columns::ui::relay_debug::RelayDebugView;
use std::cell::RefCell; use std::cell::RefCell;
use std::path::Path; use std::path::Path;
use std::rc::Rc; use std::rc::Rc;
@@ -80,6 +81,16 @@ impl eframe::App for Notedeck {
self.app_rect_handler.try_save_app_size(ctx); self.app_rect_handler.try_save_app_size(ctx);
if self.args.relay_debug {
if self.pool.debug.is_none() {
self.pool.use_debug();
}
if let Some(debug) = &mut self.pool.debug {
RelayDebugView::window(ctx, debug);
}
}
#[cfg(feature = "profiling")] #[cfg(feature = "profiling")]
puffin_egui::profiler_window(ctx); puffin_egui::profiler_window(ctx);
} }

View File

@@ -10,6 +10,7 @@ pub mod note;
pub mod preview; pub mod preview;
pub mod profile; pub mod profile;
pub mod relay; pub mod relay;
pub mod relay_debug;
pub mod side_panel; pub mod side_panel;
pub mod support; pub mod support;
pub mod thread; pub mod thread;