Fixes System.NullReferenceException exception.

This commit is contained in:
BDisp
2022-11-14 18:26:38 +00:00
parent a37e2d4134
commit 738728f2b8

View File

@@ -116,11 +116,17 @@ namespace Terminal.Gui {
void Watcher_Error (object sender, ErrorEventArgs e)
{
if (Application.MainLoop == null)
return;
Application.MainLoop.Invoke (() => Reload ());
}
void Watcher_Changed (object sender, FileSystemEventArgs e)
{
if (Application.MainLoop == null)
return;
Application.MainLoop.Invoke (() => Reload ());
}