mirror of
https://github.com/xpipe-io/xpipe.git
synced 2025-04-17 01:33:36 +00:00
Fixes [stage]
This commit is contained in:
parent
d4e143397a
commit
096cb9252f
4 changed files with 16 additions and 21 deletions
|
@ -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(
|
||||
|
|
|
@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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) -> {
|
||||
|
|
2
version
2
version
|
@ -1 +1 @@
|
|||
16.0-2
|
||||
16.0-3
|
||||
|
|
Loading…
Add table
Reference in a new issue