代码优化(部分)

This commit is contained in:
赵民勇 2023-03-17 20:31:20 +08:00
parent e8eaa64be4
commit 0f0eb4224d
1 changed files with 4 additions and 3 deletions

View File

@ -223,6 +223,7 @@ void MainDialog::initConnect()
about->deleteLater();
});
// 用户手册
connect(m_backupHelp, &QAction::triggered, this, [=] {
QProcess process(this);
process.startDetached("kylin-user-guide -A yhkylin-backup-tools");
@ -252,9 +253,9 @@ void MainDialog::initConnect()
QDBusConnection::sessionBus(),
this);
if (m_statusSessionDbus->isValid()) {
QDBusReply<bool> is_tabletmode = m_statusSessionDbus->call("get_current_tabletmode");
GlobelBackupInfo::instance().setIsTabletMode(is_tabletmode);
tabletModeChange(is_tabletmode);
QDBusReply<bool> isTabletMode = m_statusSessionDbus->call("get_current_tabletmode");
GlobelBackupInfo::instance().setIsTabletMode(isTabletMode);
tabletModeChange(isTabletMode);
connect(m_statusSessionDbus, SIGNAL(mode_change_signal(bool)), this, SLOT(tabletModeChange(bool)));
} else {
GlobelBackupInfo::instance().setIsTabletMode(false);