From a8fc6e7ea40b27e83406f343d52c2d3ccf347fce Mon Sep 17 00:00:00 2001 From: zhaominyong Date: Fri, 21 Jan 2022 13:49:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kybackup/leftsiderbarwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kybackup/leftsiderbarwidget.cpp b/kybackup/leftsiderbarwidget.cpp index e090b78..95e502b 100755 --- a/kybackup/leftsiderbarwidget.cpp +++ b/kybackup/leftsiderbarwidget.cpp @@ -84,8 +84,9 @@ LeftsiderbarWidget::LeftsiderbarWidget(QWidget *parent, StartMode mode) connect(GlobelBackupInfo::inst().getGlobalSignals(), &GlobalSignals::busy, this, [=](bool isBusy) { QList list = this->m_funcGroup->buttons(); + bool enabled = !isBusy; for (QAbstractButton * button : list) { - button->setEnabled(!isBusy); + button->setEnabled(enabled); } });