This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 239
239
<Compile Include =" $(SolutionDir)\script\src\MetricsService.cs" >
240
240
<Link >Metrics\MetricsService.cs</Link >
241
241
</Compile >
242
+ <Compile Include =" $(SolutionDir)\script\src\ApplicationInfo_Local.cs" >
243
+ <Link >Properties\ApplicationInfo_Local.cs</Link >
244
+ </Compile >
242
245
</ItemGroup >
243
246
<ItemGroup >
244
247
<ProjectReference Include =" ..\..\submodules\dotnet-httpClient35\System.Net.Http\System.Net.Http-net_3_5.csproj" >
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ public static IView Open(Action<bool> onClose = null)
29
29
30
30
public override void OnGUI ( )
31
31
{
32
+ if ( authView == null )
33
+ {
34
+ CreateViews ( ) ;
35
+ }
32
36
authView . OnGUI ( ) ;
33
37
}
34
38
Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ private static bool ContextMenu_CanLock()
52
52
53
53
var alreadyLocked = locks . Any ( x =>
54
54
{
55
- return repositoryPath == x . Path ;
55
+ return repositoryPath == x . Path . ToNPath ( ) ;
56
56
57
57
} ) ;
58
58
GitFileStatus status = GitFileStatus . None ;
59
59
if ( entries != null )
60
60
{
61
- status = entries . FirstOrDefault ( x => repositoryPath == x . Path ) . Status ;
61
+ status = entries . FirstOrDefault ( x => repositoryPath == x . Path . ToNPath ( ) ) . Status ;
62
62
}
63
63
return ! alreadyLocked && status != GitFileStatus . Untracked && status != GitFileStatus . Ignored ;
64
64
}
@@ -100,7 +100,7 @@ private static bool ContextMenu_CanUnlock()
100
100
NPath assetPath = AssetDatabase . GetAssetPath ( selected . GetInstanceID ( ) ) . ToNPath ( ) ;
101
101
NPath repositoryPath = EntryPoint . Environment . GetRepositoryPath ( assetPath ) ;
102
102
103
- var isLocked = locks . Any ( x => repositoryPath == x . Path ) ;
103
+ var isLocked = locks . Any ( x => repositoryPath == x . Path . ToNPath ( ) ) ;
104
104
return isLocked ;
105
105
}
106
106
You can’t perform that action at this time.
0 commit comments