Simplify WaylandServer::initWorkspace()

If kscreenlocker integration is on, the initialized() signal can be
still emitted in WaylandServer::initWorkspace().
This commit is contained in:
Vlad Zahorodnii 2021-10-10 18:22:40 +03:00
parent d941c97d8e
commit 65e8c0c737

View file

@ -580,9 +580,8 @@ void WaylandServer::initWorkspace()
if (hasScreenLockerIntegration()) {
initScreenLocker();
} else {
Q_EMIT initialized();
}
Q_EMIT initialized();
}
void WaylandServer::initScreenLocker()
@ -632,7 +631,6 @@ void WaylandServer::initScreenLocker()
if (m_initFlags.testFlag(InitializationFlag::LockScreen)) {
ScreenLocker::KSldApp::self()->lock(ScreenLocker::EstablishLock::Immediate);
}
Q_EMIT initialized();
}
WaylandServer::SocketPairConnection WaylandServer::createConnection()