mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-10-20 12:45:06 -04:00
Add thread safety
This commit is contained in:
1 parent
2f082a9656
commit
08aebf8ecf
1 file changed
+13
-2
@@ -39,8 +39,19 @@ namespace LibationWinForms.ProcessQueue
|
||||
|
||||
public void RefreshDisplay()
|
||||
{
|
||||
AdjustScrollBar();
|
||||
DoVirtualScroll();
|
||||
if (InvokeRequired)
|
||||
{
|
||||
Invoke((MethodInvoker)delegate
|
||||
{
|
||||
AdjustScrollBar();
|
||||
DoVirtualScroll();
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
AdjustScrollBar();
|
||||
DoVirtualScroll();
|
||||
}
|
||||
}
|
||||
|
||||
#region Dynamic Properties
|
||||
|
||||
Reference in new issue
Block a user