Fixes [stage]

This commit is contained in:
crschnick 2025-03-30 06:33:10 +00:00
parent d4e143397a
commit 096cb9252f
4 changed files with 16 additions and 21 deletions

View file

@ -57,7 +57,8 @@ public class KeePassXcManager implements PasswordManager {
var s = k.getKey().getSecretValue();
return s.substring(0, 6) + "*".repeat(s.length() - 6);
}))
.buildComp())
.buildComp()
.maxWidth(600))
.hide(prop.isNull())
.addProperty(prop)
.bind(

View file

@ -44,24 +44,17 @@ public class PasswordManagerCategory extends AppPrefsCategory {
testPasswordManagerResult.set(AppI18n.get("querying"));
});
try {
var r = prefs.passwordManager.getValue().retrievePassword(key);
Platform.runLater(() -> {
testPasswordManagerResult.set(AppI18n.get("retrievedPassword", r));
});
GlobalTimer.delay(
() -> {
Platform.runLater(() -> {
testPasswordManagerResult.set(null);
});
},
Duration.ofSeconds(5));
} catch (Exception e) {
Platform.runLater(() -> {
testPasswordManagerResult.set(null);
});
throw e;
}
var r = prefs.passwordManager.getValue().retrievePassword(key);
Platform.runLater(() -> {
testPasswordManagerResult.set(r != null ? AppI18n.get("retrievedPassword", r) : null);
});
GlobalTimer.delay(
() -> {
Platform.runLater(() -> {
testPasswordManagerResult.set(null);
});
},
Duration.ofSeconds(5));
});
}

View file

@ -85,7 +85,8 @@ public class OptionsChoiceBuilder {
properties.add(new SimpleObjectProperty<>());
}
for (int i = 0; i < sub.size(); i++) {
properties.add(new SimpleObjectProperty<>(selectedIndex == i ? s.getValue() : null));
var compatible = sub.get(i).isInstance(s.getValue());
properties.add(new SimpleObjectProperty<>(compatible ? s.getValue() : null));
}
property.addListener((obs, oldValue, newValue) -> {

View file

@ -1 +1 @@
16.0-2
16.0-3