mirror of
https://github.com/jwinterm/grim.git
synced 2026-10-28 17:28:32 +01:00
ui + config: modals content drawing refactoring, move connections config to separate file
This commit is contained in:
@@ -18,8 +18,8 @@ use grin_servers::PeerStats;
|
||||
use crate::gui::Colors;
|
||||
use crate::gui::icons::{AT, CUBE, DEVICES, FLOW_ARROW, HANDSHAKE, PACKAGE, PLUGS_CONNECTED, SHARE_NETWORK};
|
||||
use crate::gui::platform::PlatformCallbacks;
|
||||
use crate::gui::views::{Modal, NetworkContent, View};
|
||||
use crate::gui::views::types::{NetworkTab, NetworkTabType};
|
||||
use crate::gui::views::{NetworkContent, View};
|
||||
use crate::gui::views::network::types::{NetworkTab, NetworkTabType};
|
||||
use crate::node::Node;
|
||||
|
||||
/// Integrated node tab content.
|
||||
@@ -31,7 +31,7 @@ impl NetworkTab for NetworkNode {
|
||||
NetworkTabType::Node
|
||||
}
|
||||
|
||||
fn ui(&mut self, ui: &mut egui::Ui, cb: &dyn PlatformCallbacks) {
|
||||
fn ui(&mut self, ui: &mut egui::Ui, _: &mut eframe::Frame, _: &dyn PlatformCallbacks) {
|
||||
let server_stats = Node::get_stats();
|
||||
// Show message to enable node when it's not running.
|
||||
if !Node::is_running() {
|
||||
@@ -175,8 +175,6 @@ impl NetworkTab for NetworkNode {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
fn on_modal_ui(&mut self, _: &mut egui::Ui, _: &Modal, _: &dyn PlatformCallbacks) {}
|
||||
}
|
||||
|
||||
/// Draw connected peer info item.
|
||||
|
||||
Reference in New Issue
Block a user