This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 1 file changed +3
-3
lines changed 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