Skip to content

Commit f084320

Browse files
authored
Updated checkpoint browser for better bulk move operations
When DragMovesAllSelected is true and allSelectedCheckpoints has checkpoints perform a bulk move using the new MoveBetweenFolders method to avoid refreshing the model index after every move operation
1 parent f7e97c1 commit f084320

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

StabilityMatrix.Avalonia/Views/CheckpointsPage.axaml.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,7 @@ private async void OnDrop(object? sender, DragEventArgs e)
204204
{
205205
allSelectedCheckpoints.Add(vm);
206206
}
207-
208-
foreach (var checkpoint in allSelectedCheckpoints)
209-
{
210-
await checkpointsVm.MoveBetweenFolders(checkpoint.CheckpointFile, category.Path);
211-
}
207+
await checkpointsVm.MoveBetweenFolders(allSelectedCheckpoints, category.Path);
212208
}
213209
else
214210
{

0 commit comments

Comments
 (0)