소스 검색

diagnosing Watcher exception in Action test runs

Charlie Kindel 2 년 전
부모
커밋
d3056b7fcc
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      Terminal.Gui/Windows/FileDialog.cs

+ 2 - 3
Terminal.Gui/Windows/FileDialog.cs

@@ -116,13 +116,12 @@ namespace Terminal.Gui {
 
 		void Watcher_Error (object sender, ErrorEventArgs e)
 		{
-			Debug.WriteLine ($"Watcher error: {e.GetException ()}");
-			Application.MainLoop.Invoke (() => Reload ());
+			Application.MainLoop?.Invoke (() => Reload ());
 		}
 
 		void Watcher_Changed (object sender, FileSystemEventArgs e)
 		{
-			Application.MainLoop.Invoke (() => Reload ());
+			Application.MainLoop?.Invoke (() => Reload ());
 		}
 
 		ustring directory;