aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/WinformsDesktop.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-03 18:36:13 -0400
committerMichael <[email protected]>2017-04-03 18:36:13 -0400
commitf43f6fe17d054f83c686b552201d6b4bfc83524d (patch)
treeb66ca011496569fc99df3fbe53bfc5d212557bab /ShiftOS.WinForms/WinformsDesktop.cs
parent29a88a5c46dff19358b44defdc52bb75db12b9ad (diff)
downloadshiftos_thereturn-f43f6fe17d054f83c686b552201d6b4bfc83524d.tar.gz
shiftos_thereturn-f43f6fe17d054f83c686b552201d6b4bfc83524d.tar.bz2
shiftos_thereturn-f43f6fe17d054f83c686b552201d6b4bfc83524d.zip
LOADS of optimizations and Pong fixes.
Diffstat (limited to 'ShiftOS.WinForms/WinformsDesktop.cs')
-rw-r--r--ShiftOS.WinForms/WinformsDesktop.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs
index 06f103e..033802e 100644
--- a/ShiftOS.WinForms/WinformsDesktop.cs
+++ b/ShiftOS.WinForms/WinformsDesktop.cs
@@ -664,10 +664,17 @@ namespace ShiftOS.WinForms
/// <param name="act">Act.</param>
public void InvokeOnWorkerThread(Action act)
{
- this.Invoke(new Action(()=>
+ try
{
- act?.Invoke();
- }));
+ this.Invoke(new Action(() =>
+ {
+ act?.Invoke();
+ }));
+ }
+ catch
+ {
+
+ }
}
public void OpenAppLauncher(Point loc)