chore: format

This commit is contained in:
2 * r + 2 * t 2026-04-27 20:04:54 +10:00
parent 9cd9d7facd
commit dde3cda584

View file

@ -28,8 +28,9 @@ Gpu::Gpu(QObject* parent)
: TickingService(parent) {
auto* svc = caelestia::config::GlobalConfig::instance()->services();
m_userType = parseType(svc->gpuType());
QObject::connect(svc, &caelestia::config::ServiceConfig::gpuTypeChanged, this,
[this, svc] { setUserType(parseType(svc->gpuType())); });
QObject::connect(svc, &caelestia::config::ServiceConfig::gpuTypeChanged, this, [this, svc] {
setUserType(parseType(svc->gpuType()));
});
// Detection must run before any ServiceRef appears: callers may gate the ref on
// `type !== Gpu.None`, which would otherwise deadlock the detection.