mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 15:44:25 +08:00
16 lines
418 B
C#
16 lines
418 B
C#
using System;
|
|
|
|
namespace LanMountainDesktop.DesktopHost;
|
|
|
|
public sealed class DesktopStartupCoordinator
|
|
{
|
|
private readonly Action _restoreWorkspaceState;
|
|
|
|
public DesktopStartupCoordinator(Action restoreWorkspaceState)
|
|
{
|
|
_restoreWorkspaceState = restoreWorkspaceState ?? throw new ArgumentNullException(nameof(restoreWorkspaceState));
|
|
}
|
|
|
|
public void Restore() => _restoreWorkspaceState();
|
|
}
|