Detection progress SDK integration, NetworkClient callback rework

This commit is contained in:
Adam Honse
2026-01-12 13:35:30 -06:00
parent 962eca6604
commit 0ccdd5329f
8 changed files with 324 additions and 76 deletions

View File

@@ -611,7 +611,10 @@ void DetectionManager::BackgroundDetectDevices()
{
if(initial_detection_delay_ms != 0)
{
LOG_INFO("[ResourceManager] Delaying detection for %d ms", initial_detection_delay_ms);
detection_string = "Waiting for detection delay";
SignalUpdate(DETECTIONMANAGER_UPDATE_REASON_DETECTION_PROGRESS_CHANGED);
LOG_INFO("[%s] Delaying detection for %d ms", DETECTIONMANAGER, initial_detection_delay_ms);
std::this_thread::sleep_for(initial_detection_delay_ms * 1ms);
}
@@ -1371,6 +1374,8 @@ void DetectionManager::ProcessCleanup()
{
WaitForDetection();
SignalUpdate(DETECTIONMANAGER_UPDATE_REASON_RGBCONTROLLER_LIST_CLEARED);
/*-----------------------------------------------------*\
| Make a copy of the list so that the controllers can |
| be deleted after the list is cleared |