Skip to content

Commit d4be697

Browse files
add-uosdeepin-bot[bot]
authored andcommitted
fix: the wake up of screen jam only in sw military
fix dormant wake up screen jam during screen recording pick form:73d63eeb3d741ec99e25eac26fef8602418a60a Log: fix dormant wake up screen jam during screen recording in sw military Bug: https://pms.uniontech.com/bug-view-280187.html
1 parent b8c106b commit d4be697

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/main_window.cpp

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,17 @@ void MainWindow::initTreelandtAttributes() //initTreelandtAttributes
369369
this->setFixedSize(m_backgroundRect.size());
370370
initShortcut();
371371

372-
QDBusConnection::sessionBus().connect("com.deepin.SessionManager",
373-
"/com/deepin/SessionManager",
374-
"org.freedesktop.DBus.Properties",
375-
"PropertiesChanged",
376-
this,
377-
SLOT(onLockedStopRecord(QString, QVariantMap, QStringList)));
372+
#if defined __sw_64__
373+
if (DSysInfo::uosEditionType() == DSysInfo::UosEdition::UosMilitary) {
374+
//在sw military上锁屏、熄屏情况下都要结束
375+
QDBusConnection::sessionBus().connect("com.deepin.SessionManager",
376+
"/com/deepin/SessionManager",
377+
"org.freedesktop.DBus.Properties",
378+
"PropertiesChanged",
379+
this,
380+
SLOT(onLockedStopRecord(QString, QVariantMap, QStringList)));
381+
}
382+
#endif
378383
qCDebug(dsrApp) << "Attributes initialization completed.";
379384
}
380385

0 commit comments

Comments
 (0)