Save a lookup in login key dictionary

pull/25/head
Netshroud 8 years ago
parent 58b5b6185e
commit de775d5c4b

@ -333,9 +333,9 @@ namespace DepotDownloader
{ {
string loginKey = null; string loginKey = null;
if ( username != null && ContentDownloader.Config.RememberPassword && ConfigStore.TheConfig.LoginKeys.ContainsKey( username ) ) if ( username != null && Config.RememberPassword )
{ {
loginKey = ConfigStore.TheConfig.LoginKeys[ username ]; _ = ConfigStore.TheConfig.LoginKeys.TryGetValue( username, out loginKey );
} }
steam3 = new Steam3Session( steam3 = new Steam3Session(

Loading…
Cancel
Save