mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Don't open fullscreen preview when panel border or progress bar is clicked
This commit is contained in:
parent
616a200baa
commit
69afd98332
2 changed files with 2 additions and 4 deletions
2
ShareX/Controls/TaskThumbnailPanel.Designer.cs
generated
2
ShareX/Controls/TaskThumbnailPanel.Designer.cs
generated
|
@ -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
|
||||
//
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue