mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-22 05:57:53 -05:00
Detection progress SDK integration, NetworkClient callback rework
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user