Make the rescan action in ResourceManager send a rescan request to the client if the client is the primary target (local connection or only connected client when local detection disabled)

This commit is contained in:
Adam Honse 2025-07-04 01:43:38 -05:00
parent 80dee91ab9
commit c750158286
3 changed files with 76 additions and 20 deletions

View file

@ -185,6 +185,8 @@ public:
void DisableDetection();
void RescanDevices();
void StopDeviceDetection();
void WaitForInitialization();
@ -223,6 +225,16 @@ private:
\*-------------------------------------------------------------------------------------*/
bool detection_enabled;
/*-------------------------------------------------------------------------------------*\
| Auto connection active flag |
\*-------------------------------------------------------------------------------------*/
bool auto_connection_active;
/*-------------------------------------------------------------------------------------*\
| Auto connection client pointer |
\*-------------------------------------------------------------------------------------*/
NetworkClient * auto_connection_client;
/*-------------------------------------------------------------------------------------*\
| Auto connection permitting flag |
\*-------------------------------------------------------------------------------------*/