Fix redundant title when there is only one TerminatorTerm
* closes LP#215210 https://bugs.launchpad.net/terminator/+bug/215210
This commit is contained in:
parent
484b403cad
commit
4b7b1f37e4
|
@ -103,7 +103,9 @@ class TerminatorTerm:
|
||||||
self._box.show()
|
self._box.show()
|
||||||
self._box.pack_start(self._titlebox, False)
|
self._box.pack_start(self._titlebox, False)
|
||||||
self._box.pack_start(self._termbox)
|
self._box.pack_start(self._termbox)
|
||||||
if self.conf.titlebars:
|
if len(self.terminator.term_list) > 0 and self.conf.titlebars:
|
||||||
|
if len(self.terminator.term_list) == 1:
|
||||||
|
self.terminator.term_list[0]._titlebox.show()
|
||||||
self._titlebox.show()
|
self._titlebox.show()
|
||||||
else:
|
else:
|
||||||
self._titlebox.hide()
|
self._titlebox.hide()
|
||||||
|
@ -526,7 +528,7 @@ class Terminator:
|
||||||
self.command = command
|
self.command = command
|
||||||
|
|
||||||
self._fullscreen = False
|
self._fullscreen = False
|
||||||
|
self.term_list = []
|
||||||
stores = []
|
stores = []
|
||||||
stores.append (terminatorconfig.TerminatorConfValuestoreRC ())
|
stores.append (terminatorconfig.TerminatorConfValuestoreRC ())
|
||||||
|
|
||||||
|
@ -745,6 +747,8 @@ class Terminator:
|
||||||
else:
|
else:
|
||||||
if index == 0: index = 1
|
if index == 0: index = 1
|
||||||
self.term_list[index - 1]._vte.grab_focus ()
|
self.term_list[index - 1]._vte.grab_focus ()
|
||||||
|
if len(self.term_list) == 1:
|
||||||
|
self.term_list[0]._titlebox.hide()
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue