mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Made Startup a singleton
This commit is contained in:
@@ -23,8 +23,24 @@ namespace mRemoteNG.App
|
||||
{
|
||||
public class Startup
|
||||
{
|
||||
private static AppUpdater _appUpdate;
|
||||
private static readonly Startup _singletonInstance = new Startup();
|
||||
private AppUpdater _appUpdate;
|
||||
|
||||
private Startup()
|
||||
{
|
||||
_appUpdate = new AppUpdater();
|
||||
}
|
||||
|
||||
static Startup()
|
||||
{
|
||||
}
|
||||
|
||||
public static void InitializeProgram()
|
||||
{
|
||||
CreateLogger();
|
||||
LogStartupData();
|
||||
//CheckCompatibility();
|
||||
}
|
||||
|
||||
public static void CheckCompatibility()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user