integrate RelayDebugView
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user