@@ -50,9 +50,14 @@ public void RefreshView()
50
50
btnEdit . Visibility = Visibility . Hidden ;
51
51
btnAdd . Visibility = Visibility . Hidden ;
52
52
53
- if ( expFolderLinks . IsExpanded || expExcludedPaths . IsExpanded )
53
+ if ( expFolderLinks . IsExpanded || expExcludedPaths . IsExpanded || expActionKeywords . IsExpanded )
54
54
{
55
- btnAdd . Visibility = Visibility . Visible ;
55
+ if ( ! expActionKeywords . IsExpanded )
56
+ btnAdd . Visibility = Visibility . Visible ;
57
+
58
+ if ( expActionKeywords . IsExpanded
59
+ && btnEdit . Visibility == Visibility . Hidden )
60
+ btnEdit . Visibility = Visibility . Visible ;
56
61
57
62
if ( ( lbxFolderLinks . Items . Count == 0 && lbxExcludedPaths . Items . Count == 0 )
58
63
&& btnDelete . Visibility == Visibility . Visible
@@ -90,7 +95,16 @@ public void RefreshView()
90
95
91
96
private void expActionKeywords_Click ( object sender , RoutedEventArgs e )
92
97
{
98
+ if ( expActionKeywords . IsExpanded )
99
+ expActionKeywords . Height = 215 ;
100
+
101
+ if ( expExcludedPaths . IsExpanded )
102
+ expExcludedPaths . IsExpanded = false ;
93
103
104
+ if ( expFolderLinks . IsExpanded )
105
+ expFolderLinks . IsExpanded = false ;
106
+
107
+ RefreshView ( ) ;
94
108
}
95
109
96
110
private void expActionKeywords_Collapsed ( object sender , RoutedEventArgs e )
@@ -102,13 +116,13 @@ private void expActionKeywords_Collapsed(object sender, RoutedEventArgs e)
102
116
private void expFolderLinks_Click ( object sender , RoutedEventArgs e )
103
117
{
104
118
if ( expFolderLinks . IsExpanded )
105
- expFolderLinks . Height = 235 ;
106
-
107
- if ( ! expFolderLinks . IsExpanded )
108
- expFolderLinks . Height = Double . NaN ;
119
+ expFolderLinks . Height = 215 ;
109
120
110
121
if ( expExcludedPaths . IsExpanded )
111
122
expExcludedPaths . IsExpanded = false ;
123
+
124
+ if ( expActionKeywords . IsExpanded )
125
+ expActionKeywords . IsExpanded = false ;
112
126
113
127
RefreshView ( ) ;
114
128
}
@@ -127,6 +141,9 @@ private void expExcludedPaths_Click(object sender, RoutedEventArgs e)
127
141
if ( expFolderLinks . IsExpanded )
128
142
expFolderLinks . IsExpanded = false ;
129
143
144
+ if ( expActionKeywords . IsExpanded )
145
+ expActionKeywords . IsExpanded = false ;
146
+
130
147
RefreshView ( ) ;
131
148
}
132
149
0 commit comments