소스 검색

Adding try catch on FileView convert fail.

clementlandrin 11 달 전
부모
커밋
0021d03716
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      hide/view/FileView.hx

+ 5 - 1
hide/view/FileView.hx

@@ -25,7 +25,11 @@ class FileView extends hide.ui.View<{ path : String }> {
 				@:privateAccess e = new hxd.fs.LocalFileSystem.LocalEntry(fs, state.path.split("/").pop(), state.path, f);
 				@:privateAccess if( e.file == null ) e = null;
 
-				fs.convert.run(e);
+				try {
+					fs.convert.run(e);
+				} catch ( e : Dynamic ) {
+					return;
+				}
 
 				onFileChanged(!exists(fs));
 			}, { checkDelete : true, keepOnRebuild : true });