From 988b4568f3f4b6805d5d6c9509214f64849f73bd Mon Sep 17 00:00:00 2001 From: Jaex Date: Mon, 13 May 2019 00:44:21 +0300 Subject: [PATCH] Also clicking thumbnail panel will open fullscreen preview --- ShareX/Controls/TaskPanel.Designer.cs | 1 + ShareX/Controls/TaskPanel.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ShareX/Controls/TaskPanel.Designer.cs b/ShareX/Controls/TaskPanel.Designer.cs index 304dc796d..c153b4823 100644 --- a/ShareX/Controls/TaskPanel.Designer.cs +++ b/ShareX/Controls/TaskPanel.Designer.cs @@ -51,6 +51,7 @@ private void InitializeComponent() this.pThumbnail.Radius = 5F; this.pThumbnail.Size = new System.Drawing.Size(256, 256); this.pThumbnail.TabIndex = 0; + this.pThumbnail.MouseDown += new System.Windows.Forms.MouseEventHandler(this.PbThumbnail_MouseDown); // // pbProgress // diff --git a/ShareX/Controls/TaskPanel.cs b/ShareX/Controls/TaskPanel.cs index 5b4d27c4f..207f76570 100644 --- a/ShareX/Controls/TaskPanel.cs +++ b/ShareX/Controls/TaskPanel.cs @@ -179,7 +179,7 @@ public void UpdateThumbnail() ThumbnailImage = ImageHelpers.ResizeImage(img, ThumbnailSize, false); pbThumbnail.Image = ThumbnailImage; ThumbnailSourceFilePath = filePath; - pbThumbnail.Cursor = Cursors.Hand; + pbThumbnail.Cursor = pThumbnail.Cursor = Cursors.Hand; } } }