diff --git a/lib/libimhex/source/api/content_registry.cpp b/lib/libimhex/source/api/content_registry.cpp index 9efcdcfb6..a57c33799 100644 --- a/lib/libimhex/source/api/content_registry.cpp +++ b/lib/libimhex/source/api/content_registry.cpp @@ -15,6 +15,7 @@ #include #endif +#include #include #include @@ -1081,7 +1082,8 @@ namespace hex { impl::s_services->emplace_back( unlocalizedName, - std::jthread([callback = auto(callback)](const std::stop_token &stopToken){ + std::jthread([=](const std::stop_token &stopToken){ + TaskManager::setCurrentThreadName(Lang(unlocalizedName)); while (!stopToken.stop_requested()) { callback(); std::this_thread::sleep_for(std::chrono::milliseconds(50));