If bools are bistate, remove the "Clear" button from edit medata single

This commit is contained in:
Charles Haley 2020-04-18 18:32:06 +01:00
parent b468f72ba7
commit 545ce0b6ce

View File

@ -164,6 +164,7 @@ class Bool(Base):
l.addWidget(c)
c.clicked.connect(self.set_to_no)
if self.db.prefs.get('bools_are_tristate'):
t = _('Clear')
c = QPushButton(t, parent)
width = c.fontMetrics().boundingRect(t).width() + 7