Ignore:
Timestamp:
Jan 21, 2011, 9:13:59 PM (11 years ago)
Author:
kopal
Message:
  • WebDHT is now the default setting of p2p connection
  • if certificates path does not exist, p2p editor tries to create it now
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/P2PEditor/GUI/Controls/GetNewCertificateView.xaml.cs

    r2408 r2413  
    209209            try
    210210            {
     211                String path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "PeersAtPlay" + Path.DirectorySeparatorChar + "Certificates" + Path.DirectorySeparatorChar);
     212                try
     213                {
     214                    if (!Directory.Exists(path))
     215                    {
     216                        Directory.CreateDirectory(path);
     217                    }
     218                }
     219                catch (Exception ex)
     220                {
     221                    this.MessageLabel.Content = "Cannot create default account data directory '" + path + "':\n" + ex.Message;
     222                    this.MessageLabel.Visibility = Visibility.Visible;
     223                    return;
     224                }
    211225                args.Certificate.SaveCrtToAppData();
    212226                args.Certificate.SavePkcs12ToAppData(args.Certificate.Password);               
Note: See TracChangeset for help on using the changeset viewer.