From fa4086aba76e906f6e95d74a8b2b0846ee6f9f5e Mon Sep 17 00:00:00 2001 From: Anton Kasyanov Date: Thu, 9 Jun 2016 01:44:14 +0300 Subject: [PATCH] When Zoomed In the thumbnail window should always stay on the top --- Eve-O-Preview/Presentation/ThumbnailManager.cs | 4 ++-- Eve-O-Preview/UI/Implementation/ThumbnailView.cs | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Eve-O-Preview/Presentation/ThumbnailManager.cs b/Eve-O-Preview/Presentation/ThumbnailManager.cs index b57b91c..12009bc 100644 --- a/Eve-O-Preview/Presentation/ThumbnailManager.cs +++ b/Eve-O-Preview/Presentation/ThumbnailManager.cs @@ -307,13 +307,13 @@ namespace EveOPreview.UI IThumbnailView view = this._thumbnailViews[id]; - view.SetOpacity(this._configuration.ThumbnailsOpacity); - if (this._configuration.EnableThumbnailZoom) { this.ThumbnailZoomOut(view); } + view.SetOpacity(this._configuration.ThumbnailsOpacity); + this._isHoverEffectActive = false; } diff --git a/Eve-O-Preview/UI/Implementation/ThumbnailView.cs b/Eve-O-Preview/UI/Implementation/ThumbnailView.cs index 94d32f3..d643c8c 100644 --- a/Eve-O-Preview/UI/Implementation/ThumbnailView.cs +++ b/Eve-O-Preview/UI/Implementation/ThumbnailView.cs @@ -17,7 +17,6 @@ namespace EveOPreview.UI // This is pure brainless View // Just somewhat more complex than usual private bool _isThumbnailSetUp; - private bool _isTopMost; private bool _isOverlayVisible; private bool _isPositionChanged; private bool _isSizeChanged; @@ -34,7 +33,6 @@ namespace EveOPreview.UI this.IsOverlayEnabled = false; this._isThumbnailSetUp = false; - this._isTopMost = false; this._isOverlayVisible = false; this._isPositionChanged = true; @@ -147,14 +145,8 @@ namespace EveOPreview.UI public void SetTopMost(bool enableTopmost) { - if (this._isTopMost == enableTopmost) - { - return; - } - this.TopMost = enableTopmost; this._overlay.TopMost = enableTopmost; - this._isTopMost = enableTopmost; } public void ZoomIn(ViewZoomAnchor anchor, int zoomFactor)