File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Plugins/Flow.Launcher.Plugin.Program/Views Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,10 @@ private void EditProgramSource(ProgramSource selectedProgramSource)
174
174
{
175
175
var vm = new AddProgramSourceViewModel ( context , _settings , selectedProgramSource ) ;
176
176
var add = new AddProgramSource ( vm ) ;
177
+ int selectedIndex = programSourceView . SelectedIndex ;
178
+ // https://stackoverflow.com/questions/16789360/wpf-listbox-items-with-changing-hashcode
179
+ // Or it can't be unselected after changing Location
180
+ programSourceView . UnselectAll ( ) ;
177
181
if ( add . ShowDialog ( ) ?? false )
178
182
{
179
183
if ( selectedProgramSource . Enabled )
@@ -188,6 +192,7 @@ private void EditProgramSource(ProgramSource selectedProgramSource)
188
192
}
189
193
ReIndexing ( ) ;
190
194
}
195
+ programSourceView . SelectedIndex = selectedIndex ;
191
196
}
192
197
}
193
198
You can’t perform that action at this time.
0 commit comments