Improve askpass handling

This commit is contained in:
crschnick 2024-03-13 09:41:33 +00:00
parent f17b3c5ec5
commit 89d5d06b22
2 changed files with 6 additions and 1 deletions

View file

@ -51,7 +51,7 @@ public class AskpassAlert {
}
long elapsed = (now - lastRun) / 1_000_000;
if (elapsed < 1000) {
if (elapsed < 500) {
return;
}

View file

@ -42,6 +42,11 @@ public interface SecretQuery {
return r;
}
var ask = AppPrefs.get().alwaysConfirmElevation().getValue();
if (!ask) {
return r;
}
var inPlace = r.getSecret().inPlace();
return AskpassAlert.queryRaw(prompt, inPlace);
}