Skip to content

Commit 7cfb71d

Browse files
committed
Change WindowsSettings class to record and use with to create translated setting
1 parent ae2e72b commit 7cfb71d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Plugins/Flow.Launcher.Plugin.WindowsSettings/Classes/WindowsSetting.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Flow.Plugin.WindowsSettings.Classes
99
/// <summary>
1010
/// A windows setting
1111
/// </summary>
12-
internal class WindowsSetting
12+
internal record WindowsSetting
1313
{
1414
/// <summary>
1515
/// Initializes a new instance of the <see cref="WindowsSetting"/> class.

Plugins/Flow.Launcher.Plugin.WindowsSettings/Helper/TranslationHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ internal static IEnumerable<WindowsSetting> TranslateAllSettings(in IEnumerable<
8080
}
8181

8282
}
83-
var translatedSetting = new WindowsSetting
83+
var translatedSetting = settings with
8484
{
8585
Area = area ?? settings.Area,
8686
Name = name ?? settings.Name,

0 commit comments

Comments
 (0)