* Added Move Function * Fixed #364 * Quick fix as the issue still sort of persisted. * Update ModToIdConverter.cs * Fixed the logic inverse.
This commit is contained in:
@@ -205,9 +205,9 @@ namespace Torch.Server.Views
|
||||
{
|
||||
_hasOrderChanged = true;
|
||||
var modList = (MtObservableList<ModItemInfo>)DataContext;
|
||||
//modList.Move(modList.IndexOf(_draggedMod), modList.IndexOf(targetMod));
|
||||
modList.RemoveAt(modList.IndexOf(_draggedMod));
|
||||
modList.Insert(modList.IndexOf(targetMod), _draggedMod);
|
||||
modList.Move(modList.IndexOf(targetMod), _draggedMod);
|
||||
//modList.RemoveAt(modList.IndexOf(_draggedMod));
|
||||
//modList.Insert(modList.IndexOf(targetMod), _draggedMod);
|
||||
ModList.Items.Refresh();
|
||||
ModList.SelectedItem = _draggedMod;
|
||||
}
|
||||
|
Reference in New Issue
Block a user