Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Commit

Permalink
Thumbnail management fix (topmost thumbnail gets corrupted)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Kasyanov committed Aug 18, 2016
1 parent c59ddc7 commit f86f551
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions Eve-O-Preview/Presentation/ThumbnailManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,33 +290,14 @@ private void ThumbnailViewFocused(IntPtr id)

this._isHoverEffectActive = true;

IThumbnailView focusedView = null;

foreach (KeyValuePair<IntPtr, IThumbnailView> valuePair in this._thumbnailViews)
{
IThumbnailView view = valuePair.Value;

if (view.Id != id)
{
view.SetTopMost(false);
}
else
{
focusedView = view;
}
}

if (focusedView == null)
{
return; // This should neve happen!
}
IThumbnailView view = this._thumbnailViews[id];

focusedView.SetTopMost(true);
focusedView.SetOpacity(1.0);
view.SetTopMost(true);
view.SetOpacity(1.0);

if (this._configuration.ThumbnailZoomEnabled)
{
this.ThumbnailZoomIn(focusedView);
this.ThumbnailZoomIn(view);
}
}

Expand Down

0 comments on commit f86f551

Please sign in to comment.