mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-21 16:14:28 +08:00
20 lines
529 B
C#
20 lines
529 B
C#
using LanMountainDesktop.Models;
|
|
using LanMountainDesktop.Services.Settings;
|
|
|
|
namespace LanMountainDesktop.Services;
|
|
|
|
public sealed class DesktopLayoutSettingsService
|
|
{
|
|
private readonly IComponentLayoutStore _layoutStore = ComponentDomainStorageProvider.Instance;
|
|
|
|
public DesktopLayoutSettingsSnapshot Load()
|
|
{
|
|
return _layoutStore.LoadLayout();
|
|
}
|
|
|
|
public void Save(DesktopLayoutSettingsSnapshot snapshot)
|
|
{
|
|
_layoutStore.SaveLayout(snapshot ?? new DesktopLayoutSettingsSnapshot());
|
|
}
|
|
}
|