From d98787a54b5b6c02f696263fcf9e8ac190846f91 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 1 Aug 2021 22:47:20 -0500 Subject: refactor State to make it new-able --- src/slskd/Application/State.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Application/State.cs b/src/slskd/Application/State.cs index 75d46dec..83b801f3 100644 --- a/src/slskd/Application/State.cs +++ b/src/slskd/Application/State.cs @@ -20,5 +20,9 @@ namespace slskd /// /// Application state. /// - public record State(bool PendingReconnect = false, bool PendingRestart = false); + public record State() + { + public bool PendingReconnect { get; init; } + public bool PendingRestart { get; init; } + } } \ No newline at end of file -- cgit v1.2.3