Shorten text
This commit is contained in:
parent
702da542dd
commit
ef1bee0f48
@ -484,12 +484,15 @@ class Boss:
|
|||||||
return False
|
return False
|
||||||
wid = 0 if window is None else window.id
|
wid = 0 if window is None else window.id
|
||||||
overlay_window = self.choose(
|
overlay_window = self.choose(
|
||||||
_('A program wishes to control kitty.\n\n'
|
_('A program wishes to control kitty.\n'
|
||||||
'Action: {1}\n' 'Password: {0}\n\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.'
|
'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),
|
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'
|
window=window, default='a'
|
||||||
)
|
)
|
||||||
if overlay_window is None:
|
if overlay_window is None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user