From 8df0b6759bda3b695f5cf7a749525496f1c64ad5 Mon Sep 17 00:00:00 2001 From: zhaominyong Date: Wed, 16 Feb 2022 14:52:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup-daemon/systemrestoreproxy.cpp | 3 +++ kybackup/leftsiderbarwidget.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backup-daemon/systemrestoreproxy.cpp b/backup-daemon/systemrestoreproxy.cpp index 2d2bad3..56d07fa 100755 --- a/backup-daemon/systemrestoreproxy.cpp +++ b/backup-daemon/systemrestoreproxy.cpp @@ -308,6 +308,9 @@ QStringList SystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene) */ void SystemRestoreProxy::restoreSystem() { + // 停止安全防护 + QProcess::execute("systemctl stop kysec-init.service"); + // 本地系统备份没有img挂载,故下面两个路径相等 m_srcPath = m_backupPath; QString destPath = Utils::getSysRootPath(); diff --git a/kybackup/leftsiderbarwidget.cpp b/kybackup/leftsiderbarwidget.cpp index 61b6cc8..bc23a06 100755 --- a/kybackup/leftsiderbarwidget.cpp +++ b/kybackup/leftsiderbarwidget.cpp @@ -121,7 +121,7 @@ void LeftsiderbarWidget::paintEvent(QPaintEvent *event) opt.init(this); QPainter p(this); p.setPen(Qt::NoPen); - QColor color = palette().color(QPalette::Window); + QColor color = palette().color(QPalette::Button); color.setAlphaF(m_transparency); QPalette pal(this->palette()); pal.setColor(QPalette::Window, QColor(color));