confirm when closing a window with zoomed terminal
This commit is contained in:
parent
0ad3e02204
commit
d42dc52481
|
@ -270,8 +270,11 @@ class Window(Container, Gtk.Window):
|
||||||
"""Handle a window close request"""
|
"""Handle a window close request"""
|
||||||
maker = Factory()
|
maker = Factory()
|
||||||
if maker.isinstance(self.get_child(), 'Terminal'):
|
if maker.isinstance(self.get_child(), 'Terminal'):
|
||||||
dbg('Window::on_delete_event: Only one child, closing is fine')
|
if self.get_property('term_zoomed') == True:
|
||||||
return(False)
|
return(self.confirm_close(window, _('window')))
|
||||||
|
else:
|
||||||
|
dbg('Window::on_delete_event: Only one child, closing is fine')
|
||||||
|
return(False)
|
||||||
elif maker.isinstance(self.get_child(), 'Container'):
|
elif maker.isinstance(self.get_child(), 'Container'):
|
||||||
return(self.confirm_close(window, _('window')))
|
return(self.confirm_close(window, _('window')))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue