mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 02:17:03 +00:00
Actually implement allow_cloning
This commit is contained in:
parent
b45fedd794
commit
38e1d32065
1 changed files with 9 additions and 5 deletions
|
|
@ -1015,11 +1015,15 @@ class Window:
|
|||
if not msg:
|
||||
if self.current_clone_data:
|
||||
cdata, self.current_clone_data = self.current_clone_data, ''
|
||||
get_boss().confirm(_(
|
||||
'A program running in this window wants to clone it into another window.'
|
||||
' Allow it do so, once?'),
|
||||
partial(self.handle_remote_clone_confirmation, cdata), window=self,
|
||||
)
|
||||
ac = get_options().allow_cloning
|
||||
if ac == 'ask':
|
||||
get_boss().confirm(_(
|
||||
'A program running in this window wants to clone it into another window.'
|
||||
' Allow it do so, once?'),
|
||||
partial(self.handle_remote_clone_confirmation, cdata), window=self,
|
||||
)
|
||||
elif ac == 'yes':
|
||||
self.handle_remote_clone_confirmation(cdata, True)
|
||||
self.current_clone_data = ''
|
||||
return
|
||||
num, rest = msg.split(':', 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue