Disabling ZoomOnHover option doesn't disable the zoom itself

This commit is contained in:
Anton Kasyanov
2016-06-05 15:26:14 +03:00
parent 6a716a5774
commit 9902f578ef

View File

@@ -284,10 +284,13 @@ namespace EveOPreview.UI
IThumbnailView view = this._thumbnailViews[id]; IThumbnailView view = this._thumbnailViews[id];
this.ThumbnailZoomIn(view);
view.SetTopMost(true); view.SetTopMost(true);
view.SetOpacity(1.0); view.SetOpacity(1.0);
if (this._configuration.EnableThumbnailZoom)
{
this.ThumbnailZoomIn(view);
}
} }
private void ThumbnailViewLostFocus(IntPtr id) private void ThumbnailViewLostFocus(IntPtr id)
@@ -299,10 +302,13 @@ namespace EveOPreview.UI
IThumbnailView view = this._thumbnailViews[id]; IThumbnailView view = this._thumbnailViews[id];
this.ThumbnailZoomOut(view);
view.SetOpacity(this._configuration.ThumbnailsOpacity); view.SetOpacity(this._configuration.ThumbnailsOpacity);
if (this._configuration.EnableThumbnailZoom)
{
this.ThumbnailZoomOut(view);
}
this._isHoverEffectActive = false; this._isHoverEffectActive = false;
} }