diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-09-06 22:08:52 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-09-06 22:08:52 -0500 |
| commit | 3cebb8ff62a9e8a7c9d411b024f997082a7884c3 (patch) | |
| tree | 614fc3424e707ee18b9be3a891d9ec745ac8ce7a | |
| parent | 3d645132c2613bcd376ec710e6d1d02e9912cf15 (diff) | |
| download | slskd-3cebb8ff62a9e8a7c9d411b024f997082a7884c3.tar.gz | |
add version information to ApplicationState
| -rw-r--r-- | src/slskd/Application/ApplicationState.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slskd/Application/ApplicationState.cs b/src/slskd/Application/ApplicationState.cs index 9db79f5c..234985bb 100644 --- a/src/slskd/Application/ApplicationState.cs +++ b/src/slskd/Application/ApplicationState.cs @@ -22,6 +22,10 @@ namespace slskd /// </summary> public record ApplicationState() { + public string Version { get; init; } = Program.InformationalVersion; + public string LatestVersion { get; init; } = Program.InformationalVersion; + public bool? UpdateAvailable { get; init; } = null; + public bool IsCanary { get; init; } = Program.InformationalVersion.EndsWith("65534"); public bool PendingReconnect { get; init; } public bool PendingRestart { get; init; } public bool PendingShareRescan { get; init; } |
