소스 검색

Fix C# export error dialog showing up when it should not

Ignacio Etcheverry 5 년 전
부모
커밋
d79aeca599
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      modules/mono/editor/GodotTools/GodotTools/Export/ExportPlugin.cs

+ 2 - 2
modules/mono/editor/GodotTools/GodotTools/Export/ExportPlugin.cs

@@ -164,12 +164,12 @@ namespace GodotTools.Export
                 Directory.Delete(aotTempDir, recursive: true);
 
             // TODO: Just a workaround until the export plugins can be made to abort with errors
-            if (string.IsNullOrEmpty(maybeLastExportError)) // Check empty as well, because it's set to empty after hot-reloading
+            if (!string.IsNullOrEmpty(maybeLastExportError)) // Check empty as well, because it's set to empty after hot-reloading
             {
                 string lastExportError = maybeLastExportError;
                 maybeLastExportError = null;
 
-                GodotSharpEditor.Instance.ShowErrorDialog(lastExportError, "C# export failed");
+                GodotSharpEditor.Instance.ShowErrorDialog(lastExportError, "Failed to export C# project");
             }
         }