Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 2f9cbbe

Browse files
Merge branch 'master' into fixes/secure-keychain-adapter
2 parents 86d3139 + b9289f4 commit 2f9cbbe

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/GitHub.Api/GitHub.Api.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@
239239
<Compile Include="$(SolutionDir)\script\src\MetricsService.cs">
240240
<Link>Metrics\MetricsService.cs</Link>
241241
</Compile>
242+
<Compile Include="$(SolutionDir)\script\src\ApplicationInfo_Local.cs">
243+
<Link>Properties\ApplicationInfo_Local.cs</Link>
244+
</Compile>
242245
</ItemGroup>
243246
<ItemGroup>
244247
<ProjectReference Include="..\..\submodules\dotnet-httpClient35\System.Net.Http\System.Net.Http-net_3_5.csproj">

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/AuthenticationWindow.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public static IView Open(Action<bool> onClose = null)
2929

3030
public override void OnGUI()
3131
{
32+
if (authView == null)
33+
{
34+
CreateViews();
35+
}
3236
authView.OnGUI();
3337
}
3438

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ private static bool ContextMenu_CanLock()
5252

5353
var alreadyLocked = locks.Any(x =>
5454
{
55-
return repositoryPath == x.Path;
55+
return repositoryPath == x.Path.ToNPath();
5656

5757
});
5858
GitFileStatus status = GitFileStatus.None;
5959
if (entries != null)
6060
{
61-
status = entries.FirstOrDefault(x => repositoryPath == x.Path).Status;
61+
status = entries.FirstOrDefault(x => repositoryPath == x.Path.ToNPath()).Status;
6262
}
6363
return !alreadyLocked && status != GitFileStatus.Untracked && status != GitFileStatus.Ignored;
6464
}
@@ -100,7 +100,7 @@ private static bool ContextMenu_CanUnlock()
100100
NPath assetPath = AssetDatabase.GetAssetPath(selected.GetInstanceID()).ToNPath();
101101
NPath repositoryPath = EntryPoint.Environment.GetRepositoryPath(assetPath);
102102

103-
var isLocked = locks.Any(x => repositoryPath == x.Path);
103+
var isLocked = locks.Any(x => repositoryPath == x.Path.ToNPath());
104104
return isLocked;
105105
}
106106

0 commit comments

Comments
 (0)