diff ServerMonitor/Objects/Server.cs @ 8:052aa62cb42a

Single instance. Add autorun option. Add icons. General enhancements.
author Brad Greco <brad@bgreco.net>
date Sat, 09 Mar 2019 20:14:03 -0500
parents c1dffaac66fa
children 68d7834dc28e
line wrap: on
line diff
--- a/ServerMonitor/Objects/Server.cs	Fri Mar 01 21:39:22 2019 -0500
+++ b/ServerMonitor/Objects/Server.cs	Sat Mar 09 20:14:03 2019 -0500
@@ -108,7 +108,7 @@
             get { return _enabled; }
             set
             {
-                if (LoginType == LoginType.PrivateKey && PrivateKeyFile == null && value == true)
+                if ((LoginType == LoginType.PrivateKey && PrivateKeyFile == null && value == true) || value == _enabled)
                     return;
                 _enabled = value;
                 EnabledChanged?.Invoke(this, new EventArgs());