Fix bitwarden file copy [stage]

This commit is contained in:
crschnick
2026-03-05 14:33:18 +00:00
parent d065f527d6
commit cbbcc35c71
3 changed files with 3 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ public class BitwardenPasswordManager implements PasswordManager {
var def = getDefaultConfigPath();
if (Files.exists(def)) {
try {
var defIsNewer = Files.getLastModifiedTime(def).compareTo(Files.getLastModifiedTime(cacheDataFile)) > 0;
var defIsNewer = !Files.exists(cacheDataFile) || Files.getLastModifiedTime(def).compareTo(Files.getLastModifiedTime(cacheDataFile)) > 0;
if (defIsNewer) {
Files.copy(def, cacheDataFile, StandardCopyOption.REPLACE_EXISTING);
}

1
dist/changelog/21.5.1.md vendored Normal file
View File

@@ -0,0 +1 @@
- Fix bitwarden integration not applying changes in a new xpipe install

View File

@@ -1 +1 @@
21.5
21.5.1-1