WikiFunctions.AwbDirs.MigrateDefaultSettings C# (CSharp) Method

MigrateDefaultSettings() public static method

Performs silent migration from the previous scheme when we used to
public static MigrateDefaultSettings ( ) : void
return void
        public static void MigrateDefaultSettings()
        {
            string exeDir = Path.GetDirectoryName(Application.ExecutablePath);
            string defaultXml = Path.Combine(exeDir, "Default.xml");
            if (File.Exists(defaultXml) && !File.Exists(DefaultSettings) && !RunningFromNetworkOrRemovableDrive)
            {
                try
                {
                    File.Copy(defaultXml, DefaultSettings);
                    File.Delete(defaultXml);
                }
                catch
                { } // ignore
            }
        }