mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-05 06:30:36 +12:00
fixed #3354: Suspend layout before update news list
This commit is contained in:
parent
edab11136c
commit
b6c117b192
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue