Skip to content

Commit 6173eca

Browse files
fixes: typo
1 parent 73b43d2 commit 6173eca

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/Avalonia.Diagnostics/Diagnostics/Convetions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ namespace Avalonia.Diagnostics
77
{
88
static class Convetions
99
{
10-
public static string DefaultScreenshotRoot =>
10+
public static string DefaultScreenshotsRoot =>
1111
System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures, Environment.SpecialFolderOption.Create),
12-
"Screenshot");
12+
"Screenshots");
1313

1414
/// <summary>
1515
/// 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>

src/Avalonia.Diagnostics/Diagnostics/DevToolsOptions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public class DevToolsOptions
2626

2727

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

3434
/// <summary>
3535
/// Get or sets conventin for screenshot fileName.

src/Avalonia.Diagnostics/Diagnostics/ViewModels/MainViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ async void Shot(object? parameter)
257257

258258
public void SetOptions(DevToolsOptions options)
259259
{
260-
_screenshotRoot = string.IsNullOrWhiteSpace(options.ScreenshotRoot)
261-
? Convetions.DefaultScreenshotRoot
262-
: options.ScreenshotRoot!;
260+
_screenshotRoot = string.IsNullOrWhiteSpace(options.ScreenshotsRoot)
261+
? Convetions.DefaultScreenshotsRoot
262+
: options.ScreenshotsRoot!;
263263

264264
_getScreenshotFileName = options.ScreenshotFileNameConvention
265265
?? Convetions.DefaultScreenshotFileNameConvention;

0 commit comments

Comments
 (0)