Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
Unity
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shane Veasy
Unity
Commits
4c50f251
Commit
4c50f251
authored
7 years ago
by
Stanley Goldman
Browse files
Options
Downloads
Patches
Plain Diff
Slight code cleanup
parent
30f62956
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs
+6
-10
6 additions, 10 deletions
...n/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs
with
6 additions
and
10 deletions
src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs
+
6
−
10
View file @
4c50f251
...
...
@@ -219,8 +219,6 @@ namespace GitHub.Unity
return
;
}
var
guidToAssetPath
=
AssetDatabase
.
GUIDToAssetPath
(
guid
);
var
index
=
guids
.
IndexOf
(
guid
);
var
indexLock
=
guidsLocks
.
IndexOf
(
guid
);
...
...
@@ -229,24 +227,22 @@ namespace GitHub.Unity
return
;
}
GitStatusEntry
?
gitStatusEntry
;
g
itStatus
Entry
=
entries
[
index
]
;
GitFileStatus
status
;
GitStatusEntry
?
gitStatusEntry
=
null
;
G
it
File
Status
status
=
GitFileStatus
.
None
;
if
(
index
>=
0
)
{
gitStatusEntry
=
entries
[
index
];
status
=
gitStatusEntry
.
Value
.
Status
;
}
else
{
status
=
GitFileStatus
.
None
;
}
var
isLocked
=
indexLock
>=
0
;
var
texture
=
Styles
.
GetFileStatusIcon
(
status
,
isLocked
);
if
(
texture
==
null
)
{
Logger
.
Warning
(
"Unable to retrieve texture for Guid:{0} EntryPath:{1} DatabasePath:{2} Status: {3} IsLocked:{4}"
,
guid
,
gitStatusEntry
.
HasValue
?
gitStatusEntry
.
Value
.
Path
:
string
.
Empty
,
guidToAssetPath
,
status
.
ToString
(),
isLocked
);
var
path
=
gitStatusEntry
.
HasValue
?
gitStatusEntry
.
Value
.
Path
:
string
.
Empty
;
Logger
.
Warning
(
"Unable to retrieve texture for Guid:{0} EntryPath:{1} Status: {2} IsLocked:{3}"
,
guid
,
path
,
status
.
ToString
(),
isLocked
);
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment