dnetview: ignore node data if dnetview is not enabled

This commit is contained in:
lunar-mining
2023-08-06 13:43:07 +02:00
parent 8e020cb31a
commit 7deb7ca787
2 changed files with 2 additions and 2 deletions

View File

@@ -298,7 +298,7 @@ impl DataParser {
}
async fn update_selectables(&self, node: NodeInfo) -> DnetViewResult<()> {
if node.is_offline {
if node.is_offline && !node.dnet_enabled {
let node_obj = SelectableObject::Node(node.clone());
self.model.selectables.lock().await.insert(node.dnet_id.clone(), node_obj.clone());
} else {

View File

@@ -95,7 +95,7 @@ impl<'a> View {
if !self.ordered_list.iter().any(|i| i == &node.dnet_id) {
self.ordered_list.push(node.dnet_id.clone());
}
if !node.is_offline {
if !node.is_offline && node.dnet_enabled {
for inbound in &node.inbound {
if !inbound.is_empty {
if !self.ordered_list.iter().any(|i| i == &inbound.dnet_id) {