chore: format
This commit is contained in:
parent
9cd9d7facd
commit
dde3cda584
1 changed files with 3 additions and 2 deletions
|
|
@ -28,8 +28,9 @@ Gpu::Gpu(QObject* parent)
|
||||||
: TickingService(parent) {
|
: TickingService(parent) {
|
||||||
auto* svc = caelestia::config::GlobalConfig::instance()->services();
|
auto* svc = caelestia::config::GlobalConfig::instance()->services();
|
||||||
m_userType = parseType(svc->gpuType());
|
m_userType = parseType(svc->gpuType());
|
||||||
QObject::connect(svc, &caelestia::config::ServiceConfig::gpuTypeChanged, this,
|
QObject::connect(svc, &caelestia::config::ServiceConfig::gpuTypeChanged, this, [this, svc] {
|
||||||
[this, svc] { setUserType(parseType(svc->gpuType())); });
|
setUserType(parseType(svc->gpuType()));
|
||||||
|
});
|
||||||
|
|
||||||
// Detection must run before any ServiceRef appears: callers may gate the ref on
|
// Detection must run before any ServiceRef appears: callers may gate the ref on
|
||||||
// `type !== Gpu.None`, which would otherwise deadlock the detection.
|
// `type !== Gpu.None`, which would otherwise deadlock the detection.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue