From b6c117b1925741390e23242e523bab1bd2b91ee5 Mon Sep 17 00:00:00 2001 From: Jaex Date: Sun, 29 Apr 2018 14:10:08 +0300 Subject: [PATCH] fixed #3354: Suspend layout before update news list --- ShareX/Controls/NewsListControl.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ShareX/Controls/NewsListControl.cs b/ShareX/Controls/NewsListControl.cs index 386ce80a1..9ca272b97 100644 --- a/ShareX/Controls/NewsListControl.cs +++ b/ShareX/Controls/NewsListControl.cs @@ -66,6 +66,8 @@ public void Start() { if (NewsManager != null && NewsManager.NewsItems != null) { + tlpMain.SuspendLayout(); + foreach (NewsItem item in NewsManager.NewsItems) { if (item != null) @@ -74,6 +76,8 @@ public void Start() } } + tlpMain.ResumeLayout(); + OnNewsLoaded(); } });