Skip to content

Commit d7dd89d

Browse files
committed
change from remove/insert to move
1 parent 20a865f commit d7dd89d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Plugins/Flow.Launcher.Plugin.WebSearch/SettingsControl.xaml.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ private void ListView_Drop(object sender, DragEventArgs e)
217217
if (removedIdx == targetIdx)
218218
return;
219219

220-
items.RemoveAt(removedIdx);
221-
items.Insert(removedIdx < targetIdx ? targetIdx - 1 : targetIdx, droppedData);
220+
items.Move(removedIdx, targetIdx);
222221
}
223222
}
224223

0 commit comments

Comments
 (0)