mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Change WindowsSettings class to record and use with to create translated setting
This commit is contained in:
parent
ae2e72b926
commit
7cfb71df35
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ namespace Flow.Plugin.WindowsSettings.Classes
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A windows setting
|
/// A windows setting
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class WindowsSetting
|
internal record WindowsSetting
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="WindowsSetting"/> class.
|
/// Initializes a new instance of the <see cref="WindowsSetting"/> class.
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ namespace Flow.Plugin.WindowsSettings.Helper
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
var translatedSetting = new WindowsSetting
|
var translatedSetting = settings with
|
||||||
{
|
{
|
||||||
Area = area ?? settings.Area,
|
Area = area ?? settings.Area,
|
||||||
Name = name ?? settings.Name,
|
Name = name ?? settings.Name,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue