Initializer syntax
MODIFY
WalletWasabi.Fluent/Screenshot/Capture.cs
WalletWasabi.Fluent/Screenshot/Capture.cs
@@ -30,8 +30,10 @@ public static class Capture
private static async Task SaveAsync(TopLevel root)
{
- var dlg = new SaveFileDialog { Title = "Save screenshot" };
- dlg.Filters = new()
+ var dlg = new SaveFileDialog
+ {
+ Title = "Save screenshot",
+ Filters = new()
{
new() { Name = "Svg", Extensions = { "svg" } },
new() { Name = "Png", Extensions = { "png" } },
@@ -39,9 +41,10 @@ public static class Capture
new() { Name = "Xps", Extensions = { "xps" } },
new() { Name = "Skp", Extensions = { "skp" } },
new() { Name = "All", Extensions = { "*" } }
+ },
+ InitialFileName = "WalletWasabi",
+ DefaultExtension = "svg"
};
- dlg.InitialFileName = "WalletWasabi";
- dlg.DefaultExtension = "svg";
if (root is not Window window)
{
return;

Initializer syntax