server info and configuration

alphons <alphons@heijden.com> 19 Jan 2025, 10:56
bd3e13d4be76ac3b35e07a58956942e7031543de
1 files changed
  • RedisGui/FormMain.cs
diff --git a/RedisGui/FormMain.cs b/RedisGui/FormMain.cs
index a398de6..34b6d7a 100644
--- a/RedisGui/FormMain.cs
+++ b/RedisGui/FormMain.cs
@@ -213,11 +213,11 @@ public partial class FormMain : Form
this.listView1.Items.Clear();
- if (this.treeView1.SelectedNode == null || this.treeView1.SelectedNode.Parent == null)
+ if (this.treeView1.SelectedNode == null)
return;
- if (this.treeView1.SelectedNode.Parent.Tag is not ConnectionPoint connectionNode || connectionNode.Server == null)
+ if (this.treeView1.SelectedNode.Tag is not ConnectionPoint connectionNode || connectionNode.Server == null)
return;
var kvs = await connectionNode.Server.ConfigGetAsync("*");
@@ -235,11 +235,11 @@ public partial class FormMain : Form
this.listView1.Items.Clear();
- if (this.treeView1.SelectedNode == null || this.treeView1.SelectedNode.Parent == null)
+ if (this.treeView1.SelectedNode == null)
return;
- if (this.treeView1.SelectedNode.Parent.Tag is not ConnectionPoint connectionNode || connectionNode.Server == null)
+ if (this.treeView1.SelectedNode.Tag is not ConnectionPoint connectionNode || connectionNode.Server == null)
return;
var groups = await connectionNode.Server.InfoAsync();