Thumbnail can fall behind other windows even if the 'Stay on top' option is activated

This commit is contained in:
Anton Kasyanov
2018-04-03 23:37:54 +03:00
parent f9cbf239f5
commit 6fccd9ff4d

View File

@@ -176,12 +176,12 @@ namespace EveOPreview.View
public void SetTopMost(bool enableTopmost) public void SetTopMost(bool enableTopmost)
{ {
// IMO WinForms could check this too
if (this._isTopMost == enableTopmost) if (this._isTopMost == enableTopmost)
{ {
return; return;
} }
this.TopLevel = enableTopmost;
this.TopMost = enableTopmost; this.TopMost = enableTopmost;
this._overlay.TopMost = enableTopmost; this._overlay.TopMost = enableTopmost;