mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-28 23:31:43 +12:00
Improve askpass handling
This commit is contained in:
parent
f17b3c5ec5
commit
89d5d06b22
2 changed files with 6 additions and 1 deletions
|
@ -51,7 +51,7 @@ public class AskpassAlert {
|
|||
}
|
||||
|
||||
long elapsed = (now - lastRun) / 1_000_000;
|
||||
if (elapsed < 1000) {
|
||||
if (elapsed < 500) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue