Skip to content

Commit

Permalink
fixes: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
workgroupengineering committed Jun 15, 2021
1 parent 73b43d2 commit 6173eca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Avalonia.Diagnostics/Diagnostics/Convetions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ namespace Avalonia.Diagnostics
{
static class Convetions
{
public static string DefaultScreenshotRoot =>
public static string DefaultScreenshotsRoot =>
System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures, Environment.SpecialFolderOption.Create),
"Screenshot");
"Screenshots");

/// <summary>
/// Return the path of the screenshot folder according to the rules indicated in issue <see href="https://github.com/AvaloniaUI/Avalonia/issues/4743">GH-4743</see>
Expand Down
6 changes: 3 additions & 3 deletions src/Avalonia.Diagnostics/Diagnostics/DevToolsOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public class DevToolsOptions


/// <summary>
/// Get or sets the root folder where screeshot well be stored.
/// The default root folder is MyPictures/ScreenShot.
/// Get or sets the root folder where screeshots well be stored.
/// The default root folder is [Environment.SpecialFolder.MyPictures]/Screenshots.
/// </summary>
public string? ScreenshotRoot { get; set; }
public string? ScreenshotsRoot { get; set; }

/// <summary>
/// Get or sets conventin for screenshot fileName.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ async void Shot(object? parameter)

public void SetOptions(DevToolsOptions options)
{
_screenshotRoot = string.IsNullOrWhiteSpace(options.ScreenshotRoot)
? Convetions.DefaultScreenshotRoot
: options.ScreenshotRoot!;
_screenshotRoot = string.IsNullOrWhiteSpace(options.ScreenshotsRoot)
? Convetions.DefaultScreenshotsRoot
: options.ScreenshotsRoot!;

_getScreenshotFileName = options.ScreenshotFileNameConvention
?? Convetions.DefaultScreenshotFileNameConvention;
Expand Down

0 comments on commit 6173eca

Please sign in to comment.