This commit is contained in:
parent
64f453d612
commit
8df0b6759b
|
@ -308,6 +308,9 @@ QStringList SystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene)
|
||||||
*/
|
*/
|
||||||
void SystemRestoreProxy::restoreSystem()
|
void SystemRestoreProxy::restoreSystem()
|
||||||
{
|
{
|
||||||
|
// 停止安全防护
|
||||||
|
QProcess::execute("systemctl stop kysec-init.service");
|
||||||
|
|
||||||
// 本地系统备份没有img挂载,故下面两个路径相等
|
// 本地系统备份没有img挂载,故下面两个路径相等
|
||||||
m_srcPath = m_backupPath;
|
m_srcPath = m_backupPath;
|
||||||
QString destPath = Utils::getSysRootPath();
|
QString destPath = Utils::getSysRootPath();
|
||||||
|
|
|
@ -121,7 +121,7 @@ void LeftsiderbarWidget::paintEvent(QPaintEvent *event)
|
||||||
opt.init(this);
|
opt.init(this);
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
p.setPen(Qt::NoPen);
|
p.setPen(Qt::NoPen);
|
||||||
QColor color = palette().color(QPalette::Window);
|
QColor color = palette().color(QPalette::Button);
|
||||||
color.setAlphaF(m_transparency);
|
color.setAlphaF(m_transparency);
|
||||||
QPalette pal(this->palette());
|
QPalette pal(this->palette());
|
||||||
pal.setColor(QPalette::Window, QColor(color));
|
pal.setColor(QPalette::Window, QColor(color));
|
||||||
|
|
Loading…
Reference in New Issue