Compare commits
2 Commits
event-sour
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e3962d02c7 | |||
| a4c4079324 |
@@ -642,10 +642,10 @@ class ConfirmMenu(Menu):
|
|||||||
self.timeout = timeout
|
self.timeout = timeout
|
||||||
|
|
||||||
def _execute(self, **_kwargs) -> bool:
|
def _execute(self, **_kwargs) -> bool:
|
||||||
options = {True: "[y]/n", False: "y/[n]", None: "y/n"}[self.default]
|
options = {True: "[Y/n]", False: "[y/N]", None: "[y/n]"}[self.default]
|
||||||
while True:
|
while True:
|
||||||
result = self.input_str(
|
result = self.input_str(
|
||||||
f"{self.prompt} ({options})",
|
f"{self.prompt} {options}",
|
||||||
end_prompt=": ",
|
end_prompt=": ",
|
||||||
timeout=self.timeout,
|
timeout=self.timeout,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user