mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-05 06:30:36 +12:00
Don't open fullscreen preview when panel border or progress bar is clicked
This commit is contained in:
parent
616a200baa
commit
69afd98332
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.Size = new System.Drawing.Size(256, 256);
|
||||||
this.pThumbnail.StatusLocation = ShareX.ThumbnailTitleLocation.Top;
|
this.pThumbnail.StatusLocation = ShareX.ThumbnailTitleLocation.Top;
|
||||||
this.pThumbnail.TabIndex = 0;
|
this.pThumbnail.TabIndex = 0;
|
||||||
this.pThumbnail.MouseClick += new System.Windows.Forms.MouseEventHandler(this.PbThumbnail_MouseClick);
|
|
||||||
//
|
//
|
||||||
// pbProgress
|
// pbProgress
|
||||||
//
|
//
|
||||||
|
@ -78,7 +77,6 @@ private void InitializeComponent()
|
||||||
this.pbProgress.TabIndex = 1;
|
this.pbProgress.TabIndex = 1;
|
||||||
this.pbProgress.Text = null;
|
this.pbProgress.Text = null;
|
||||||
this.pbProgress.Visible = false;
|
this.pbProgress.Visible = false;
|
||||||
this.pbProgress.MouseClick += new System.Windows.Forms.MouseEventHandler(this.PbThumbnail_MouseClick);
|
|
||||||
//
|
//
|
||||||
// pbThumbnail
|
// pbThumbnail
|
||||||
//
|
//
|
||||||
|
|
|
@ -320,7 +320,7 @@ public void UpdateThumbnail(Image image = null)
|
||||||
if (!string.IsNullOrEmpty(filePath) && File.Exists(filePath))
|
if (!string.IsNullOrEmpty(filePath) && File.Exists(filePath))
|
||||||
{
|
{
|
||||||
ThumbnailSupportsClick = true;
|
ThumbnailSupportsClick = true;
|
||||||
pThumbnail.Cursor = Cursors.Hand;
|
pbThumbnail.Cursor = Cursors.Hand;
|
||||||
}
|
}
|
||||||
|
|
||||||
Image img = CreateThumbnail(filePath, image);
|
Image img = CreateThumbnail(filePath, image);
|
||||||
|
@ -404,7 +404,7 @@ public void ClearThumbnail()
|
||||||
}
|
}
|
||||||
|
|
||||||
ThumbnailSupportsClick = false;
|
ThumbnailSupportsClick = false;
|
||||||
pThumbnail.Cursor = Cursors.Default;
|
pbThumbnail.Cursor = Cursors.Default;
|
||||||
|
|
||||||
ThumbnailExists = false;
|
ThumbnailExists = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue