Load sizes after detection is complete

This commit is contained in:
Adam Honse 2020-08-06 13:14:21 -05:00
parent e84cb98055
commit 75899f973b
2 changed files with 5 additions and 3 deletions

View file

@ -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");
}

View file

@ -157,8 +157,6 @@ int main(int argc, char* argv[])
ResourceManager::get()->DetectDevices();
}
profile_manager.LoadSizeFromProfile("sizes.ors");
/*---------------------------------------------------------*\
| Process command line arguments |
\*---------------------------------------------------------*/