Mercurial > servermonitor
diff ServerMonitor/Forms/ServerSummaryForm.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/Forms/ServerSummaryForm.cs Thu Feb 28 21:19:32 2019 -0500 +++ b/ServerMonitor/Forms/ServerSummaryForm.cs Fri Mar 01 21:38:22 2019 -0500 @@ -112,9 +112,13 @@ private void CollectPrivateKeyPasswords() { + List<string> triedKeys = new List<string>(); foreach (Server server in monitor.Servers) { + if (triedKeys.Contains(server.KeyFile)) + continue; ServerForm.OpenPrivateKey(monitor, server, this); + triedKeys.Add(server.KeyFile); } }