Fix move queue items
This commit is contained in:
@@ -375,9 +375,9 @@ namespace Step.NC
|
||||
itemId = itemId - 1;
|
||||
|
||||
// Update queue running index
|
||||
if (itemId < QueueRunningIndexes[processId] && newIndex > QueueRunningIndexes[processId])
|
||||
if (itemId < QueueRunningIndexes[processId] && newIndex >= QueueRunningIndexes[processId])
|
||||
QueueRunningIndexes[processId] -= 1;
|
||||
if (newIndex < QueueRunningIndexes[processId] && itemId > QueueRunningIndexes[processId])
|
||||
if (newIndex <= QueueRunningIndexes[processId] && itemId > QueueRunningIndexes[processId])
|
||||
QueueRunningIndexes[processId] += 1;
|
||||
|
||||
queue = new List<DTOQueueModel>();
|
||||
|
||||
Reference in New Issue
Block a user