mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-02-25 02:37:30 -05:00
Load sizes after detection is complete
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "ResourceManager.h"
|
||||
|
||||
#include "ProfileManager.h"
|
||||
|
||||
std::unique_ptr<ResourceManager> ResourceManager::instance;
|
||||
|
||||
@@ -102,6 +102,8 @@ void ResourceManager::DetectDevicesThreadFunction()
|
||||
unsigned int prev_count = 0;
|
||||
float percent = 0.0f;
|
||||
|
||||
ProfileManager profile_manager(rgb_controllers);
|
||||
|
||||
/*-------------------------------------------------*\
|
||||
| Start at 0% detection progress |
|
||||
\*-------------------------------------------------*/
|
||||
@@ -158,4 +160,6 @@ void ResourceManager::DetectDevicesThreadFunction()
|
||||
|
||||
detection_percent = percent * 100.0f;
|
||||
}
|
||||
|
||||
profile_manager.LoadSizeFromProfile("sizes.ors");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user