Skip to content

Commit e8c8b11

Browse files
committed
Fix: The reconfiguration window crashes on dropdown value changed
Initialization code to fix bug where the reconfiguration window crashes when the dropdown value changes. The bug was related with trying to re-add an existing key into a dictionary.
1 parent 8b3bda6 commit e8c8b11

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.gitattributes

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain

DynamicReconfigureSharp/DynamicReconfigureGroup.xaml.cs

+6
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ public DynamicReconfigureGroup(Group g, Config def, Config min, Config max, stri
8181
_parent = g.parent;
8282
Loaded += (sender, args) =>
8383
{
84+
paramsHolder.Children.Clear();
85+
dropdowns.Clear();
86+
checkboxes.Clear();
87+
sliders.Clear();
88+
boxes.Clear();
89+
8490
foreach (ParamDescription s in g.parameters)
8591
{
8692
string _name = s.name.data;

0 commit comments

Comments
 (0)