From 38871e8b0d9b32e873a068ca6ba6e2b0b67db3af Mon Sep 17 00:00:00 2001 From: tsic404 Date: Thu, 7 Sep 2023 17:29:14 +0800 Subject: [PATCH] fix: a space on tray without trash show the m_mainBoxLayout last call addStretch, so tary show insert into second last log: make tray insert into second last --- frame/window/docktraywindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/window/docktraywindow.cpp b/frame/window/docktraywindow.cpp index e3110b2d1..b2b450a93 100644 --- a/frame/window/docktraywindow.cpp +++ b/frame/window/docktraywindow.cpp @@ -73,7 +73,7 @@ void DockTrayWindow::setDisplayMode(const Dock::DisplayMode &displayMode) if (displayMode == Dock::DisplayMode::Efficient) { ExpandIconWidget::popupTrayView()->setReferGridView(m_trayView); // TODO: reuse QuickPluginWindow, SystemPluginWindow - m_mainBoxLayout->addWidget(TrayGridView::getDockTrayGridView()); + m_mainBoxLayout->insertWidget(m_mainBoxLayout->count() - 2, TrayGridView::getDockTrayGridView()); } else { m_mainBoxLayout->removeWidget(TrayGridView::getDockTrayGridView()); }