mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix tabbar with only a single tab not hidden anymore when minimizing to tray at startup
This commit is contained in:
parent
fed210dc38
commit
9b211928a9
@ -77,14 +77,9 @@ DatabaseTabWidget::~DatabaseTabWidget()
|
||||
void DatabaseTabWidget::toggleTabbar()
|
||||
{
|
||||
if (count() > 1) {
|
||||
if (!tabBar()->isVisible()) {
|
||||
tabBar()->show();
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (tabBar()->isVisible()) {
|
||||
tabBar()->hide();
|
||||
}
|
||||
tabBar()->show();
|
||||
} else {
|
||||
tabBar()->hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user