File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Rubberduck.Core/Navigation/CodeExplorer Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace Rubberduck.Navigation.CodeExplorer
8
8
{
9
9
public class CodeExplorerReferenceViewModel : CodeExplorerItemViewModel
10
10
{
11
- private ReferenceModel _reference ;
11
+ private readonly ReferenceModel _reference ;
12
12
13
13
public CodeExplorerReferenceViewModel ( CodeExplorerReferenceFolderViewModel parent , ReferenceModel reference )
14
14
{
@@ -34,12 +34,7 @@ private BitmapImage GetIcon()
34
34
GetImageSource ( CodeExplorerUI . BrokenReference ) ;
35
35
}
36
36
37
- if ( _reference . Status == ReferenceStatus . None || _reference . Status . HasFlag ( ReferenceStatus . Loaded ) )
38
- {
39
- return _reference . IsBuiltIn ? GetImageSource ( CodeExplorerUI . LockedReference ) : GetImageSource ( CodeExplorerUI . Reference ) ;
40
- }
41
-
42
- return GetImageSource ( CodeExplorerUI . ObjectLibrary ) ;
37
+ return _reference . IsBuiltIn ? GetImageSource ( CodeExplorerUI . LockedReference ) : GetImageSource ( CodeExplorerUI . Reference ) ;
43
38
}
44
39
}
45
40
}
You can’t perform that action at this time.
0 commit comments