Shorten text

This commit is contained in:
Kovid Goyal 2022-08-10 20:00:20 +05:30
parent 702da542dd
commit ef1bee0f48
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -484,12 +484,15 @@ class Boss:
return False
wid = 0 if window is None else window.id
overlay_window = self.choose(
_('A program wishes to control kitty.\n\n'
'Action: {1}\n' 'Password: {0}\n\n'
_('A program wishes to control kitty.\n'
'Action: {1}\n' 'Password: {0}\n' '{2}'
).format(
styled(pcmd['password'], fg='yellow'), styled(pcmd['cmd'], fg='magenta'),
'\x1b[m' + styled(_(
'Note that allowing the password will allow all future actions using the same password, in this kitty instance.'
).format(styled(pcmd['password'], fg='yellow'), styled(pcmd['cmd'], fg='magenta')),
), dim=True)),
partial(self.remote_cmd_permission_received, pcmd, wid, peer_id),
'a;green:Allow this request', 'p;yellow:Allow this password', 'r;magenta:Deny this request', 'd;red:Deny this password',
'a;green:Allow request', 'p;yellow:Allow password', 'r;magenta:Deny request', 'd;red:Deny password',
window=window, default='a'
)
if overlay_window is None: