Skip to content

Commit

Permalink
Fix warning: Property not found: mono/editor/editor_path_optional (go…
Browse files Browse the repository at this point in the history
  • Loading branch information
van800 committed Mar 21, 2020
1 parent cce0a27 commit 05946be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mono/editor/GodotTools/GodotTools/BuildManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public static void Initialize()
var editorSettings = GodotSharpEditor.Instance.GetEditorInterface().GetEditorSettings();
var msbuild = BuildTool.MsBuildMono;
if (OS.IsWindows)
msbuild = RiderPathManager.IsRider((string) editorSettings.GetSetting(RiderPathManager.EditorPathSettingName))
msbuild = RiderPathManager.IsExternalEditorSetToRider(editorSettings)
? BuildTool.JetBrainsMsBuild
: BuildTool.MsBuildVs;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public static void Initialize()
}
}

public static bool IsExternalEditorSetToRider(EditorSettings editorSettings)
{
return editorSettings.HasSetting(EditorPathSettingName) && IsRider((string) editorSettings.GetSetting(EditorPathSettingName));
}

public static bool IsRider(string path)
{
if (string.IsNullOrEmpty(path))
Expand Down

0 comments on commit 05946be

Please sign in to comment.