Tray Icon menu disappears when there is at least one thumbnail visible

This commit is contained in:
Anton Kasyanov
2016-08-06 13:41:34 +03:00
parent ed8881e6e4
commit 35e4a9db01

View File

@@ -16,6 +16,7 @@ namespace EveOPreview.UI
// Just somewhat more complex than usual
private bool _isThumbnailSetUp;
private bool _isOverlayVisible;
private bool _isTopMost;
private bool _isPositionChanged;
private bool _isSizeChanged;
private DateTime _suppressResizeEventsTimestamp;
@@ -34,6 +35,7 @@ namespace EveOPreview.UI
this.IsOverlayEnabled = false;
this._isThumbnailSetUp = false;
this._isOverlayVisible = false;
this._isTopMost = false;
this._isPositionChanged = true;
this._isSizeChanged = true;
@@ -162,8 +164,16 @@ namespace EveOPreview.UI
public void SetTopMost(bool enableTopmost)
{
// IMO WinForms could check this too
if (this._isTopMost == enableTopmost)
{
return;
}
this.TopMost = enableTopmost;
this._overlay.TopMost = enableTopmost;
this._isTopMost = enableTopmost;
}
public void ZoomIn(ViewZoomAnchor anchor, int zoomFactor)