Closed mgomezleon closed 3 years ago
hola Miguel, gracias por PR
podrías agregar un check al mostrar el menú contextual para que sea visible solo si hay mas de un tab.
def popupmenu(self, widget, event, label):
if event.type == Gdk.EventType.BUTTON_PRESS and event.button == 3:
self.popup.label = self.label
if self.is_active:
self.popup.mnuReopen.hide()
else:
self.popup.mnuReopen.show()
#show/hide split menu
nb = self.widget_.get_parent()
if nb.get_n_pages()>1:
self.popup.mnuSplitH.show()
self.popup.mnuSplitV.show()
else:
self.popup.mnuSplitH.hide()
self.popup.mnuSplitV.hide()
...
Hola Renzo, primero que todo gracias a ti por tan útil app. Adicione lo que usted indico pero ademas desactive la opción cuando das click derecho sobre el terminal.
Hola Miguel el PR está con conflicto, puedes revisar tus commits para que el PR quede limpio y listo para el merge.?
Hola @kuthulux Quedo resuelto.
listo, gracias
ES: Adicionando opciones de split al menú contextual, para cuando la barra de herramientas esté oculta. EN: Adding split options to the contextual menu, for when the toolbar is hidden.