From a9983f8d4b3b8d7cba3f6afe4f19164afd921341 Mon Sep 17 00:00:00 2001 From: Manuel Mayer Date: Sat, 4 Jun 2022 02:26:26 +0200 Subject: [PATCH] Only user created variables visible in ReadVariableFromFile configurator --- .../Views/ReadVariableFromFileActionConfigView.Designer.cs | 1 - Variables/Plugin/Views/ReadVariableFromFileActionConfigView.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Variables/Plugin/Views/ReadVariableFromFileActionConfigView.Designer.cs b/Variables/Plugin/Views/ReadVariableFromFileActionConfigView.Designer.cs index fedddf9c..ed0fe46c 100644 --- a/Variables/Plugin/Views/ReadVariableFromFileActionConfigView.Designer.cs +++ b/Variables/Plugin/Views/ReadVariableFromFileActionConfigView.Designer.cs @@ -155,7 +155,6 @@ private void InitializeComponent() // // ReadVariableFromFileActionConfigView // - this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.btnCreateVariable); this.Controls.Add(this.pictureBox1); diff --git a/Variables/Plugin/Views/ReadVariableFromFileActionConfigView.cs b/Variables/Plugin/Views/ReadVariableFromFileActionConfigView.cs index d18bde48..5e702af5 100644 --- a/Variables/Plugin/Views/ReadVariableFromFileActionConfigView.cs +++ b/Variables/Plugin/Views/ReadVariableFromFileActionConfigView.cs @@ -37,7 +37,7 @@ private void ReadVariableFromFileActionConfigView_Load(object sender, EventArgs private void LoadVariables() { this.variable.Items.Clear(); - foreach (var variable in VariableManager.Variables) + foreach (var variable in VariableManager.Variables.FindAll(x => x.Creator == "User")) { this.variable.Items.Add(variable.Name); }