summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Roldán Etcheverry <neikeq@users.noreply.github.com>2019-12-21 22:55:13 +0100
committerGitHub <noreply@github.com>2019-12-21 22:55:13 +0100
commit58c07f27fc0f6b6c706dc7e0ffb1e471ede165a5 (patch)
treec8e1277b917239ce7617a2f6b4da00709853109f
parenta10449bbbc1c04f3ca151e067974717145a396d7 (diff)
parent097d1c93832f1db69aa70b00135294e22b5fb4bf (diff)
Merge pull request #34522 from kramer425/mono-windows-path-ext-fix
Fix mono on windows path ext error
-rw-r--r--modules/mono/editor/GodotTools/GodotTools/Utils/OS.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools/Utils/OS.cs b/modules/mono/editor/GodotTools/GodotTools/Utils/OS.cs
index 09719d8721..279e67b3eb 100644
--- a/modules/mono/editor/GodotTools/GodotTools/Utils/OS.cs
+++ b/modules/mono/editor/GodotTools/GodotTools/Utils/OS.cs
@@ -107,7 +107,7 @@ namespace GodotTools.Utils
searchDirs.AddRange(pathDirs);
string nameExt = Path.GetExtension(name);
- bool hasPathExt = string.IsNullOrEmpty(nameExt) || windowsExts.Contains(nameExt, StringComparer.OrdinalIgnoreCase);
+ bool hasPathExt = !string.IsNullOrEmpty(nameExt) && windowsExts.Contains(nameExt, StringComparer.OrdinalIgnoreCase);
searchDirs.Add(System.IO.Directory.GetCurrentDirectory()); // last in the list