comparison 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
comparison
equal deleted inserted replaced
5:b6fe203af9d5 6:c1dffaac66fa
110 ServerPanel.Controls.Cast<ServerSummaryControl>().FirstOrDefault(c => c.Server == server).Refresh(); 110 ServerPanel.Controls.Cast<ServerSummaryControl>().FirstOrDefault(c => c.Server == server).Refresh();
111 } 111 }
112 112
113 private void CollectPrivateKeyPasswords() 113 private void CollectPrivateKeyPasswords()
114 { 114 {
115 List<string> triedKeys = new List<string>();
115 foreach (Server server in monitor.Servers) 116 foreach (Server server in monitor.Servers)
116 { 117 {
118 if (triedKeys.Contains(server.KeyFile))
119 continue;
117 ServerForm.OpenPrivateKey(monitor, server, this); 120 ServerForm.OpenPrivateKey(monitor, server, this);
121 triedKeys.Add(server.KeyFile);
118 } 122 }
119 } 123 }
120 124
121 private void Server_EnabledChanged(object sender, EventArgs e) 125 private void Server_EnabledChanged(object sender, EventArgs e)
122 { 126 {