mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 06:11:07 -04: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");
|
||||
}
|
||||
|
||||
2
main.cpp
2
main.cpp
@@ -157,8 +157,6 @@ int main(int argc, char* argv[])
|
||||
ResourceManager::get()->DetectDevices();
|
||||
}
|
||||
|
||||
profile_manager.LoadSizeFromProfile("sizes.ors");
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| Process command line arguments |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user