Thumbnail management fix (topmost thumbnail gets corrupted)

This commit is contained in:
Anton Kasyanov
2016-08-18 22:23:38 +03:00
parent c59ddc759f
commit f86f551d77

View File

@@ -290,33 +290,14 @@ namespace EveOPreview.UI
this._isHoverEffectActive = true; this._isHoverEffectActive = true;
IThumbnailView focusedView = null; IThumbnailView view = this._thumbnailViews[id];
foreach (KeyValuePair<IntPtr, IThumbnailView> valuePair in this._thumbnailViews) view.SetTopMost(true);
{ view.SetOpacity(1.0);
IThumbnailView view = valuePair.Value;
if (view.Id != id)
{
view.SetTopMost(false);
}
else
{
focusedView = view;
}
}
if (focusedView == null)
{
return; // This should neve happen!
}
focusedView.SetTopMost(true);
focusedView.SetOpacity(1.0);
if (this._configuration.ThumbnailZoomEnabled) if (this._configuration.ThumbnailZoomEnabled)
{ {
this.ThumbnailZoomIn(focusedView); this.ThumbnailZoomIn(view);
} }
} }