mirror of
https://github.com/ckaczor/WorldClockStatusWindow.git
synced 2026-01-13 17:23:18 -05:00
Add update settings panel
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using NuGet.Versioning;
|
||||
using Serilog;
|
||||
using System;
|
||||
using Velopack;
|
||||
using Velopack.Sources;
|
||||
|
||||
namespace WorldClockStatusWindow;
|
||||
|
||||
internal class Program
|
||||
{
|
||||
private static UpdateManager _updateManager;
|
||||
|
||||
[STAThread]
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
@@ -28,8 +24,4 @@ internal class Program
|
||||
|
||||
Log.Logger.Information("End");
|
||||
}
|
||||
|
||||
public static UpdateManager UpdateManager => _updateManager ??= new UpdateManager(new GithubSource("https://github.com/ckaczor/WorldClockStatusWindow", null, false));
|
||||
|
||||
public static string LocalVersion => (UpdateManager.CurrentVersion ?? new SemanticVersion(0, 0, 0)).ToString();
|
||||
}
|
||||
Reference in New Issue
Block a user