mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 14:14:17 -04:00
Don't print Running standalone message when local server connection succeeds
This commit is contained in:
@@ -425,6 +425,11 @@ SettingsManager* ResourceManager::GetSettingsManager()
|
||||
return(settings_manager);
|
||||
}
|
||||
|
||||
bool ResourceManager::GetDetectionEnabled()
|
||||
{
|
||||
return(detection_enabled);
|
||||
}
|
||||
|
||||
unsigned int ResourceManager::GetDetectionPercent()
|
||||
{
|
||||
return (detection_percent.load());
|
||||
|
||||
@@ -118,6 +118,7 @@ public:
|
||||
void RegisterDetectionEndCallback(DetectionEndCallback new_callback, void * new_callback_arg);
|
||||
void RegisterI2CBusListChangeCallback(I2CBusListChangeCallback new_callback, void * new_callback_arg);
|
||||
|
||||
bool GetDetectionEnabled();
|
||||
unsigned int GetDetectionPercent();
|
||||
const char* GetDetectionString();
|
||||
|
||||
|
||||
6
main.cpp
6
main.cpp
@@ -241,7 +241,11 @@ int main(int argc, char* argv[])
|
||||
\*---------------------------------------------------------*/
|
||||
if(!(ret_flags & RET_FLAG_NO_DETECT))
|
||||
{
|
||||
printf("Running standalone.\r\n");
|
||||
if(ResourceManager::get()->GetDetectionEnabled())
|
||||
{
|
||||
printf("Running standalone.\r\n");
|
||||
}
|
||||
|
||||
ResourceManager::get()->DetectDevices();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user