Don't open fullscreen preview when panel border or progress bar is clicked

This commit is contained in:
Jaex 2019-10-06 09:25:17 +03:00
parent 616a200baa
commit 69afd98332
2 changed files with 2 additions and 4 deletions

View file

@ -63,7 +63,6 @@ private void InitializeComponent()
this.pThumbnail.Size = new System.Drawing.Size(256, 256);
this.pThumbnail.StatusLocation = ShareX.ThumbnailTitleLocation.Top;
this.pThumbnail.TabIndex = 0;
this.pThumbnail.MouseClick += new System.Windows.Forms.MouseEventHandler(this.PbThumbnail_MouseClick);
//
// pbProgress
//
@ -78,7 +77,6 @@ private void InitializeComponent()
this.pbProgress.TabIndex = 1;
this.pbProgress.Text = null;
this.pbProgress.Visible = false;
this.pbProgress.MouseClick += new System.Windows.Forms.MouseEventHandler(this.PbThumbnail_MouseClick);
//
// pbThumbnail
//

View file

@ -320,7 +320,7 @@ public void UpdateThumbnail(Image image = null)
if (!string.IsNullOrEmpty(filePath) && File.Exists(filePath))
{
ThumbnailSupportsClick = true;
pThumbnail.Cursor = Cursors.Hand;
pbThumbnail.Cursor = Cursors.Hand;
}
Image img = CreateThumbnail(filePath, image);
@ -404,7 +404,7 @@ public void ClearThumbnail()
}
ThumbnailSupportsClick = false;
pThumbnail.Cursor = Cursors.Default;
pbThumbnail.Cursor = Cursors.Default;
ThumbnailExists = false;
}