2 Commits

View File

@@ -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,
) )