Mercurial > servermonitor
diff ServerMonitor/Objects/Server.cs @ 6:c1dffaac66fa
- Don't show multiple password dialogs for the same key if the first one was cancelled.
- Add option to trim log files.
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Fri, 01 Mar 2019 21:38:22 -0500 |
parents | b6fe203af9d5 |
children | 052aa62cb42a |
line wrap: on
line diff
--- a/ServerMonitor/Objects/Server.cs Thu Feb 28 21:19:32 2019 -0500 +++ b/ServerMonitor/Objects/Server.cs Fri Mar 01 21:38:22 2019 -0500 @@ -200,6 +200,11 @@ _sshClient?.Dispose(); _sshClient = null; } + + public override string ToString() + { + return Name.IsNullOrEmpty() ? Host : Name; + } } public enum KeyStatus