25 auto& state = registry();
26 QMutexLocker lock(&state.mutex);
27 if (state.categories.contains(category))
29 state.categories.append(category);
30 if (state.context && state.observer) {
31 QMetaObject::invokeMethod(
32 state.context, [observer = state.observer, category] { observer(category); }, Qt::QueuedConnection);