From 32d60ce1eefbfab56e8a5aa46c8129405f07f38b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BE=AF=E7=BA=A2=E5=8B=8B?= <houhongxun@kylinos.cn>
Date: Mon, 15 Apr 2024 14:17:05 +0800
Subject: [PATCH] peony: fix a problem that failed to switch between sidebar
 items
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

when quickly click between side bar items

Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
---
 src/windows/main-window.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/windows/main-window.cpp b/src/windows/main-window.cpp
index 26840cd..2b0e430 100644
--- a/src/windows/main-window.cpp
+++ b/src/windows/main-window.cpp
@@ -1190,7 +1190,7 @@ void MainWindow::validBorder()
 void MainWindow::initUI(const QString &uri)
 {
     connect(this, &MainWindow::locationChangeStart, this, [=]() {
-        m_side_bar->blockSignals(true);
+        //m_side_bar->blockSignals(true);
         m_header_bar->blockSignals(true);
         QCursor c;
         c.setShape(Qt::WaitCursor);
@@ -1201,7 +1201,7 @@ void MainWindow::initUI(const QString &uri)
     });
 
     connect(this, &MainWindow::locationChangeEnd, this, [=]() {
-        m_side_bar->blockSignals(false);
+        //m_side_bar->blockSignals(false);
         m_header_bar->blockSignals(false);
         QCursor c;
         c.setShape(Qt::ArrowCursor);
-- 
2.43.0

