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 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" >
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments