Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit ddb9268

Browse files
committed
Version 2.0.9.0
1 parent 5e64a1d commit ddb9268

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

KeeOneDriveSync.plgx

-11.8 KB
Binary file not shown.

KoenZomers.KeePass.OneDriveSync/Configuration.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public class Configuration : ICloneable
141141
/// Gets the KeePass database configuration for KeePassOneDriveSync for the KeePass database of which the local path is provided
142142
/// </summary>
143143
/// <param name="localPasswordDatabasePath">Full path to where the KeePass database resides locally</param>
144-
/// <returns>KeePassOneDriveSync settings for the provided database</returns>
144+
/// <returns>KeePassOneDriveSync settings for the provided database. If no configuration exists yet for the database, it will provide a new empty configuration set.</returns>
145145
public static Configuration GetPasswordDatabaseConfiguration(string localPasswordDatabasePath)
146146
{
147147
localPasswordDatabasePath = NormalizePath(localPasswordDatabasePath);
@@ -153,6 +153,17 @@ public static Configuration GetPasswordDatabaseConfiguration(string localPasswor
153153
return PasswordDatabases[localPasswordDatabasePath];
154154
}
155155

156+
/// <summary>
157+
/// Sets the KeePass database configuration for KeePassOneDriveSync for the KeePass database of which the local path is provided to the configuration that is provided
158+
/// </summary>
159+
/// <param name="localPasswordDatabasePath">Full path to where the KeePass database resides locally</param>
160+
/// <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>
161+
public static void SetPasswordDatabaseConfiguration(string localPasswordDatabasePath, Configuration configuration)
162+
{
163+
localPasswordDatabasePath = NormalizePath(localPasswordDatabasePath);
164+
PasswordDatabases[localPasswordDatabasePath] = configuration;
165+
}
166+
156167
/// <summary>
157168
/// Loads the configuration stored in KeePass
158169
/// </summary>

KoenZomers.KeePass.OneDriveSync/KeePassDatabase.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ public static async Task OpenDatabaseFromCloudService(Action<string> updateStatu
6363
databaseConfig.LastSyncedAt = DateTime.Now;
6464
databaseConfig.LastCheckedAt = DateTime.Now;
6565

66-
databaseConfig = Configuration.GetPasswordDatabaseConfiguration(localKeePassDatabasePath);
66+
// Add the new configuration to the database configuration set in memory
67+
Configuration.SetPasswordDatabaseConfiguration(localKeePassDatabasePath, databaseConfig);
68+
69+
// Save the database configuration set to persistent storage
6770
Configuration.Save();
6871

6972
UpdateStatus("Opening KeePass database");

KoenZomers.KeePass.OneDriveSync/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("2.0.8.0")]
34+
[assembly: AssemblyVersion("2.0.9.0")]

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Download the PLGX and place it inside your KeePass\Plugins folder. Typically thi
1717

1818
## Latest Version
1919

20+
Version 2.0.9.0 - September 26, 2019
21+
22+
- 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!
23+
2024
Version 2.0.8.0 - July 28, 2019
2125

2226
- 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!

0 commit comments

Comments
 (0)