mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-19 18:26:34 +01:00
TabWidget: Hide closed tabs button when there are no closed tabs
This commit is contained in:
parent
6806fa5405
commit
848a61440c
@ -192,11 +192,7 @@ bool TabWidget::validIndex(int index) const
|
||||
|
||||
void TabWidget::updateClosedTabsButton()
|
||||
{
|
||||
if (!m_showClosedTabsButton) {
|
||||
m_buttonClosedTabs->hide();
|
||||
}
|
||||
|
||||
m_buttonClosedTabs->setEnabled(canRestoreTab());
|
||||
m_buttonClosedTabs->setVisible(m_showClosedTabsButton && canRestoreTab());
|
||||
}
|
||||
|
||||
bool TabWidget::isCurrentTabFresh() const
|
||||
@ -217,7 +213,6 @@ void TabWidget::tabBarOverFlowChanged(bool overflowed)
|
||||
// Show buttons displayed outside tabbar (corner widgets)
|
||||
m_buttonAddTab2->setVisible(overflowed);
|
||||
m_buttonListTabs->setVisible(overflowed);
|
||||
m_buttonClosedTabs->setVisible(m_showClosedTabsButton);
|
||||
}
|
||||
|
||||
void TabWidget::moveAddTabButton(int posX)
|
||||
|
Loading…
Reference in New Issue
Block a user