Changed toggleAutoHideArea)= logic - only the current dock widget is pinned and not all dock widgets of this area

This commit is contained in:
Uwe Kindler 2022-10-17 09:59:40 +02:00
parent e3117121cc
commit bb630ca605

View File

@ -1100,16 +1100,13 @@ void CDockAreaWidget::closeArea()
void CDockAreaWidget::toggleAutoHideArea(bool Enable) void CDockAreaWidget::toggleAutoHideArea(bool Enable)
{ {
const auto area = dockContainer()->getDockAreaPosition(this); const auto area = dockContainer()->getDockAreaPosition(this);
for (const auto DockWidget : openedDockWidgets()) const auto DockWidget = currentDockWidget();
{
if (Enable == isAutoHide()) if (Enable == isAutoHide())
{ {
continue; return;
} }
onAutoHideToggleRequested(DockWidget, !isAutoHide(), area); onAutoHideToggleRequested(DockWidget, !isAutoHide(), area);
} }
}
//============================================================================ //============================================================================
void CDockAreaWidget::onAutoHideToggleRequested(CDockWidget* DockWidget, bool Enable, CDockWidgetSideTab::SideTabBarArea area) void CDockAreaWidget::onAutoHideToggleRequested(CDockWidget* DockWidget, bool Enable, CDockWidgetSideTab::SideTabBarArea area)