@@ -30,7 +30,7 @@ public static class ProfileManager
3030 private const string ProfilesDefaultFileName = "Default" ;
3131
3232 /// <summary>
33- /// Settings backups directory name.
33+ /// Profiles backups directory name.
3434 /// </summary>
3535 private static string BackupFolderName => "Backups" ;
3636
@@ -199,7 +199,7 @@ public static string GetProfilesFolderLocation()
199199 /// Method to get the path of the profiles backup folder.
200200 /// </summary>
201201 /// <returns>Path to the profiles backup folder.</returns>
202- public static string GetSettingsBackupFolderLocation ( )
202+ public static string GetProfilesBackupFolderLocation ( )
203203 {
204204 return Path . Combine ( GetProfilesFolderLocation ( ) , BackupFolderName ) ;
205205 }
@@ -364,6 +364,7 @@ public static void EnableEncryption(ProfileFileInfo profileFileInfo, SecureStrin
364364 List < GroupInfo > profiles = Path . GetExtension ( profileFileInfo . Path ) == LegacyProfileFileExtension
365365 ? DeserializeFromXmlFile ( profileFileInfo . Path )
366366 : DeserializeFromFile ( profileFileInfo . Path ) ;
367+
367368 // Save the encrypted file
368369 var decryptedBytes = SerializeToByteArray ( profiles ) ;
369370 var encryptedBytes = CryptoHelper . Encrypt ( decryptedBytes ,
@@ -538,7 +539,7 @@ private static void Load(ProfileFileInfo profileFileInfo)
538539
539540 // Create a backup of the legacy XML file
540541 Backup ( profileFileInfo . Path ,
541- GetSettingsBackupFolderLocation ( ) ,
542+ GetProfilesBackupFolderLocation ( ) ,
542543 TimestampHelper . GetTimestampFilename ( Path . GetFileName ( profileFileInfo . Path ) ) ) ;
543544
544545 // Save encrypted profile file with new JSON format
@@ -585,7 +586,7 @@ private static void Load(ProfileFileInfo profileFileInfo)
585586
586587 // Create a backup of the legacy XML file and delete the original
587588 Backup ( profileFileInfo . Path ,
588- GetSettingsBackupFolderLocation ( ) ,
589+ GetProfilesBackupFolderLocation ( ) ,
589590 TimestampHelper . GetTimestampFilename ( Path . GetFileName ( profileFileInfo . Path ) ) ) ;
590591
591592 // Create new profile file info with JSON extension
@@ -654,7 +655,7 @@ public static void Save()
654655 // Ensure the profiles directory exists.
655656 Directory . CreateDirectory ( GetProfilesFolderLocation ( ) ) ;
656657
657- // Write to an xml file.
658+ // Write profiles to the profile file (JSON, optionally encrypted) .
658659 if ( LoadedProfileFile . IsEncrypted )
659660 {
660661 // Only if the password provided earlier was valid...
0 commit comments