mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
23 lines
719 B
C#
23 lines
719 B
C#
using System.Collections.Generic;
|
|
|
|
namespace LanMountainDesktop.Models;
|
|
|
|
public sealed class LauncherSettingsSnapshot
|
|
{
|
|
public List<string> HiddenLauncherFolderPaths { get; set; } = [];
|
|
|
|
public List<string> HiddenLauncherAppPaths { get; set; } = [];
|
|
|
|
public LauncherSettingsSnapshot Clone()
|
|
{
|
|
var clone = (LauncherSettingsSnapshot)MemberwiseClone();
|
|
clone.HiddenLauncherFolderPaths = HiddenLauncherFolderPaths is { Count: > 0 }
|
|
? new List<string>(HiddenLauncherFolderPaths)
|
|
: [];
|
|
clone.HiddenLauncherAppPaths = HiddenLauncherAppPaths is { Count: > 0 }
|
|
? new List<string>(HiddenLauncherAppPaths)
|
|
: [];
|
|
return clone;
|
|
}
|
|
}
|