Skip to content

Commit

Permalink
integrate RelayDebugView
Browse files Browse the repository at this point in the history
Signed-off-by: kernelkind <[email protected]>
  • Loading branch information
kernelkind committed Jan 1, 2025
1 parent fe413d4 commit 764a04f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions crates/notedeck_chrome/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use notedeck::{

use enostr::RelayPool;
use nostrdb::{Config, Ndb, Transaction};
use notedeck_columns::ui::relay_debug::RelayDebugView;
use std::cell::RefCell;
use std::path::Path;
use std::rc::Rc;
Expand Down Expand Up @@ -80,6 +81,16 @@ impl eframe::App for Notedeck {

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")]
puffin_egui::profiler_window(ctx);
}
Expand Down
1 change: 1 addition & 0 deletions crates/notedeck_columns/src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub mod note;
pub mod preview;
pub mod profile;
pub mod relay;
pub mod relay_debug;
pub mod side_panel;
pub mod support;
pub mod thread;
Expand Down

0 comments on commit 764a04f

Please sign in to comment.