Fix CS1525 compiler error for Unity 2019.4 by replacing ??= with version-compatible code

Co-authored-by: boxqkrtm <8157743+boxqkrtm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-12 09:57:19 +00:00
parent d8164f72bb
commit 412c992de2

View File

@@ -584,7 +584,11 @@ namespace Microsoft.Unity.VisualStudio.Editor
var application = Path;
var workspace = TryFindWorkspace(directory);
#if UNITY_2020_2_OR_NEWER
workspace ??= directory;
#else
workspace = workspace ?? directory;
#endif
directory = workspace;
if (EditorPrefs.GetBool(ReuseExistingWindowKey, false))