diff options
Diffstat (limited to 'TimeHACK.Engine/TaskBarController.cs')
| -rw-r--r-- | TimeHACK.Engine/TaskBarController.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/TimeHACK.Engine/TaskBarController.cs b/TimeHACK.Engine/TaskBarController.cs index 3d73d63..496dca9 100644 --- a/TimeHACK.Engine/TaskBarController.cs +++ b/TimeHACK.Engine/TaskBarController.cs @@ -28,10 +28,15 @@ namespace TimeHACK.Engine List<Form> AppsList = new List<Form>(); foreach (Form form in Application.OpenForms) { - if (form.Tag.ToString() != "ignoreFormOnTaskbar") + try { + if (form.Tag.ToString() != "ignoreFormOnTaskbar") + { + AppsList.Add(form); + } + } catch { AppsList.Add(form); - } + } } return AppsList; } |
