Skip to content

Commit

Permalink
Version 2.0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KoenZomers committed Sep 26, 2019
1 parent 5e64a1d commit ddb9268
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
Binary file modified KeeOneDriveSync.plgx
Binary file not shown.
13 changes: 12 additions & 1 deletion KoenZomers.KeePass.OneDriveSync/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public class Configuration : ICloneable
/// Gets the KeePass database configuration for KeePassOneDriveSync for the KeePass database of which the local path is provided
/// </summary>
/// <param name="localPasswordDatabasePath">Full path to where the KeePass database resides locally</param>
/// <returns>KeePassOneDriveSync settings for the provided database</returns>
/// <returns>KeePassOneDriveSync settings for the provided database. If no configuration exists yet for the database, it will provide a new empty configuration set.</returns>
public static Configuration GetPasswordDatabaseConfiguration(string localPasswordDatabasePath)
{
localPasswordDatabasePath = NormalizePath(localPasswordDatabasePath);
Expand All @@ -153,6 +153,17 @@ public static Configuration GetPasswordDatabaseConfiguration(string localPasswor
return PasswordDatabases[localPasswordDatabasePath];
}

/// <summary>
/// Sets the KeePass database configuration for KeePassOneDriveSync for the KeePass database of which the local path is provided to the configuration that is provided
/// </summary>
/// <param name="localPasswordDatabasePath">Full path to where the KeePass database resides locally</param>
/// <param name="configuration">Configuration that should be set for the KeePass database. If configuration already existed for the same database, it will be overwritten. If it didn't exist yet, it will be added.</param>
public static void SetPasswordDatabaseConfiguration(string localPasswordDatabasePath, Configuration configuration)
{
localPasswordDatabasePath = NormalizePath(localPasswordDatabasePath);
PasswordDatabases[localPasswordDatabasePath] = configuration;
}

/// <summary>
/// Loads the configuration stored in KeePass
/// </summary>
Expand Down
5 changes: 4 additions & 1 deletion KoenZomers.KeePass.OneDriveSync/KeePassDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ public static async Task OpenDatabaseFromCloudService(Action<string> updateStatu
databaseConfig.LastSyncedAt = DateTime.Now;
databaseConfig.LastCheckedAt = DateTime.Now;

databaseConfig = Configuration.GetPasswordDatabaseConfiguration(localKeePassDatabasePath);
// Add the new configuration to the database configuration set in memory
Configuration.SetPasswordDatabaseConfiguration(localKeePassDatabasePath, databaseConfig);

// Save the database configuration set to persistent storage
Configuration.Save();

UpdateStatus("Opening KeePass database");
Expand Down
2 changes: 1 addition & 1 deletion KoenZomers.KeePass.OneDriveSync/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.8.0")]
[assembly: AssemblyVersion("2.0.9.0")]
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Download the PLGX and place it inside your KeePass\Plugins folder. Typically thi

## Latest Version

Version 2.0.9.0 - September 26, 2019

- Fixed the issue reported in [issue 112](https://github.com/KoenZomers/KeePassOneDriveSync/issues/112) where opening a KeePass database from OneDrive would require you to log on twice. Thanks to [keab](https://github.com/keab) for reporting this!

Version 2.0.8.0 - July 28, 2019

- Merged [Pull Request 102](https://github.com/KoenZomers/KeePassOneDriveSync/pull/102) which should solve some issues around relative paths when using KeePass portable. Thanks to [jfurtner](https://github.com/jfurtner) for his contribution!
Expand Down

0 comments on commit ddb9268

Please sign in to comment.