Skip to content

Commit 87676d2

Browse files
committed
fix: error when dragging downwards
1 parent b9a4314 commit 87676d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private void ListView_Drop(object sender, DragEventArgs e)
215215
return;
216216

217217
items.RemoveAt(removedIdx);
218-
items.Insert(targetIdx, droppedData);
218+
items.Insert(removedIdx < targetIdx ? targetIdx - 1 : targetIdx, droppedData);
219219
}
220220
}
221221

0 commit comments

Comments
 (0)