Changeset View
Changeset View
Standalone View
Standalone View
src/backendmanager.cpp
Show First 20 Lines • Show All 357 Lines • ▼ Show 20 Line(s) | 315 | { | |||
---|---|---|---|---|---|
358 | connect(new GetConfigOperation(GetConfigOperation::NoEDID), &GetConfigOperation::finished, | 358 | connect(new GetConfigOperation(GetConfigOperation::NoEDID), &GetConfigOperation::finished, | ||
359 | [&](ConfigOperation *op) { | 359 | [&](ConfigOperation *op) { | ||
360 | mConfig = qobject_cast<GetConfigOperation*>(op)->config(); | 360 | mConfig = qobject_cast<GetConfigOperation*>(op)->config(); | ||
361 | emitBackendReady(); | 361 | emitBackendReady(); | ||
362 | }); | 362 | }); | ||
363 | // And listen for its change. | 363 | // And listen for its change. | ||
364 | connect(mInterface, &org::kde::kscreen::Backend::configChanged, | 364 | connect(mInterface, &org::kde::kscreen::Backend::configChanged, | ||
365 | [&](const QVariantMap &newConfig) { | 365 | [&](const QVariantMap &newConfig) { | ||
366 | mConfig = KScreen::ConfigSerializer::deserializeConfig(newConfig); | 366 | mConfig = KScreen::ConfigSerializer::deserializeConfig(newConfig, ConfigSerializer::ExcludeEDID); | ||
367 | }); | 367 | }); | ||
368 | } | 368 | } | ||
369 | 369 | | |||
370 | void BackendManager::backendServiceUnregistered(const QString &serviceName) | 370 | void BackendManager::backendServiceUnregistered(const QString &serviceName) | ||
371 | { | 371 | { | ||
372 | Q_ASSERT(mMethod == OutOfProcess); | 372 | Q_ASSERT(mMethod == OutOfProcess); | ||
373 | mServiceWatcher.removeWatchedService(serviceName); | 373 | mServiceWatcher.removeWatchedService(serviceName); | ||
374 | 374 | | |||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |