代码优化(部分)
This commit is contained in:
parent
e8eaa64be4
commit
0f0eb4224d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue