Thanks for your help Dominik. I've just pushed out a new version of the plugin in which it seems to work well now. https://github.com/KoenZomers/KeePassOneDriveSync/releases/tag/2.0.5.0
Dominik, I dug into why I had to build in all kinds of hoops only to allow syncing the currently active database tab. I now remember where I got stuck. At this line: var importSuccessful = ImportUtil.Import(KoenZomersKeePassOneDriveSyncExt.Host.Database, formatter, new[] { connectionInfo }, true, KoenZomersKeePassOneDriveSyncExt.Host.MainWindow, false, KoenZomersKeePassOneDriveSyncExt.Host.MainWindow); For the first argument I need to provide a KeePassLib.PwDatabase instance. How could I get such...
Dominik, I dug into why I had to build in all kinds of hoops only to allow syncing the currently active database tab. I now remember where I got stuck. At this line: var importSuccessful = ImportUtil.Import(KoenZomersKeePassOneDriveSyncExt.Host.Database, formatter, new[] { connectionInfo }, true, KoenZomersKeePassOneDriveSyncExt.Host.MainWindow, false, KoenZomersKeePassOneDriveSyncExt.Host.MainWindow); For the first argument I need to provide a KeePassLib.PwDatabase instance. How could I get such...
Hmm I believe I ran into an error if I tried to work with databases that weren't the currently active one. Let me look into that again if you say it should work.
I'm the author of the plugin KeePassOneDriveSync (https://github.com/KoenZomers/KeePassOneDriveSync). I have one user reporting that when he's using KeyAutoExec to open multiple KeePass databases at once, my plugin doesn't work well. On a database open, my plugin will trigger a download of the database from OneDrive, merge it with the local database and upload the result back to OneDrive. I have noticed in my code that I can't work with/merge KeePass databases if they are not the active tab in KeePass....
Dominik, I've got someone else reporting the same issue when removing history items from KeePass entries. They don't get properly synced and will reappear. Does this one fall under the same umbrella and is this also a known issue? Thanks
Resolved! Thanks again!
FileClosingPre sounds exactly what I need! Thanks for the pointer. I'll try it out.