From 635ff88a5342882746b2b4936955adac5515da42 Mon Sep 17 00:00:00 2001 From: David Sparer Date: Sun, 7 May 2017 12:17:33 -0600 Subject: [PATCH] removed unused param --- mRemoteV1/App/Runtime.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/mRemoteV1/App/Runtime.cs b/mRemoteV1/App/Runtime.cs index af13999b..ce5ce124 100644 --- a/mRemoteV1/App/Runtime.cs +++ b/mRemoteV1/App/Runtime.cs @@ -253,7 +253,6 @@ namespace mRemoteNG.App public static void LoadConnectionsAsync() { _withDialog = false; - _loadUpdate = true; var t = new Thread(LoadConnectionsBGd); t.SetApartmentState(ApartmentState.STA); @@ -261,13 +260,12 @@ namespace mRemoteNG.App } private static bool _withDialog; - private static bool _loadUpdate; private static void LoadConnectionsBGd() { - LoadConnections(_withDialog, _loadUpdate); + LoadConnections(_withDialog); } - public static void LoadConnections(bool withDialog = false, bool update = false) + public static void LoadConnections(bool withDialog = false) { var connectionsLoader = new ConnectionsLoader(); try @@ -325,11 +323,11 @@ namespace mRemoteNG.App switch (CTaskDialog.CommandButtonResult) { case 0: - LoadConnections(withDialog, update); + LoadConnections(withDialog); return; case 1: Settings.Default.UseSQLServer = false; - LoadConnections(true, update); + LoadConnections(true); return; default: Application.Exit(); @@ -346,7 +344,7 @@ namespace mRemoteNG.App MessageCollector.AddExceptionMessage(string.Format(Language.strConnectionsFileCouldNotBeLoaded, connectionsLoader.ConnectionFileName), ex); if (connectionsLoader.ConnectionFileName != GetStartupConnectionFileName()) { - LoadConnections(withDialog, update); + LoadConnections(withDialog); } else {