Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2776 committed Sep 23, 2024
1 parent 406433e commit 58d0c2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/PicView.Avalonia/Navigation/ImageIterator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,6 @@ public void UpdateFileListAndIndex(List<string> fileList, int index)

#endregion



#region IDisposable

public void Dispose()
Expand Down
3 changes: 2 additions & 1 deletion src/PicView.Avalonia/Navigation/QuickLoad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,14 @@ await Dispatcher.UIThread.InvokeAsync(() =>
}, DispatcherPriority.Send);

vm.IsLoading = false;
vm.GetIndex = vm.ImageIterator.CurrentIndex + 1;

vm.ZoomValue = 1;
vm.PixelWidth = imageModel.PixelWidth;
vm.PixelHeight = imageModel.PixelHeight;

ExifHandling.UpdateExifValues(imageModel, vm);
vm.ImageIterator ??= new ImageIterator(fileInfo, vm);
vm.GetIndex = vm.ImageIterator.CurrentIndex + 1;

SetTitleHelper.SetTitle(vm, imageModel);

Expand Down

0 comments on commit 58d0c2d

Please sign in to comment.