Skip to content

Commit dc993a0

Browse files
DYN-5106-WebView2-DocumentationBrowser Code Review
- changing the visibility for the property FallbackDirectoryName - renaming coreDir by docsDir
1 parent b0526ab commit dc993a0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/DocumentationBrowserViewExtension/DocumentationBrowserView.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public partial class DocumentationBrowserView : UserControl, IDisposable
2323
private const string VIRTUAL_FOLDER_MAPPING = "appassets";
2424
static readonly string HTML_IMAGE_PATH_PREFIX = @"http://";
2525

26-
public string FallbackDirectoryName { get; set; }
26+
internal string FallbackDirectoryName { get; set; }
2727

2828
/// <summary>
2929
/// Construct a new DocumentationBrowserView given an appropriate viewmodel.

src/DocumentationBrowserViewExtension/DocumentationBrowserViewExtension.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ public override void Startup(ViewStartupParams viewStartupParams)
6565
var pathManager = viewStartupParams.PathManager;
6666
if (!string.IsNullOrEmpty(pathManager.DynamoCoreDirectory))
6767
{
68-
var coreDir = new DirectoryInfo(Path.Combine(pathManager.DynamoCoreDirectory, FALLBACK_DOC_DIRECTORY_NAME));
69-
fallbackDocPath = coreDir.Exists ? coreDir : null;
68+
var docsDir = new DirectoryInfo(Path.Combine(pathManager.DynamoCoreDirectory, FALLBACK_DOC_DIRECTORY_NAME));
69+
fallbackDocPath = docsDir.Exists ? docsDir : null;
7070
}
7171

7272
if (!string.IsNullOrEmpty(pathManager.HostApplicationDirectory))
7373
{
74-
var hostDir = new DirectoryInfo(Path.Combine(pathManager.HostApplicationDirectory, FALLBACK_DOC_DIRECTORY_NAME));
75-
fallbackDocPath = hostDir.Exists ? hostDir : null;
74+
var docsDir = new DirectoryInfo(Path.Combine(pathManager.HostApplicationDirectory, FALLBACK_DOC_DIRECTORY_NAME));
75+
fallbackDocPath = docsDir.Exists ? docsDir : null;
7676
}
7777

7878
if(this.BrowserView != null)

0 commit comments

Comments
 (0)