mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36: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()
|
void TabWidget::updateClosedTabsButton()
|
||||||
{
|
{
|
||||||
if (!m_showClosedTabsButton) {
|
m_buttonClosedTabs->setVisible(m_showClosedTabsButton && canRestoreTab());
|
||||||
m_buttonClosedTabs->hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
m_buttonClosedTabs->setEnabled(canRestoreTab());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TabWidget::isCurrentTabFresh() const
|
bool TabWidget::isCurrentTabFresh() const
|
||||||
@ -217,7 +213,6 @@ void TabWidget::tabBarOverFlowChanged(bool overflowed)
|
|||||||
// Show buttons displayed outside tabbar (corner widgets)
|
// Show buttons displayed outside tabbar (corner widgets)
|
||||||
m_buttonAddTab2->setVisible(overflowed);
|
m_buttonAddTab2->setVisible(overflowed);
|
||||||
m_buttonListTabs->setVisible(overflowed);
|
m_buttonListTabs->setVisible(overflowed);
|
||||||
m_buttonClosedTabs->setVisible(m_showClosedTabsButton);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabWidget::moveAddTabButton(int posX)
|
void TabWidget::moveAddTabButton(int posX)
|
||||||
|
Loading…
Reference in New Issue
Block a user