1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Mark activity on HTTP response.

This commit is contained in:
Bartosz Taudul 2022-09-28 01:24:41 +02:00
parent bc30786c05
commit f5abdd489d
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -201,7 +201,7 @@ int main( int argc, char** argv )
{
uint32_t ver;
memcpy( &ver, data, 4 );
RunOnMainThread( [ver] { updateVersion = ver; } );
RunOnMainThread( [ver] { updateVersion = ver; tracy::s_wasActive = true; } );
}
delete[] data;
} );
@ -512,7 +512,7 @@ static void DrawContents()
HttpRequest( "nereid.pl", "/tracy/notes", 8099, [] ( int size, char* data ) {
std::string notes( data, data+size );
delete[] data;
RunOnMainThread( [notes = move( notes )] { releaseNotes = std::move( notes ); } );
RunOnMainThread( [notes = move( notes )] { releaseNotes = std::move( notes ); tracy::s_wasActive = true; } );
} );
} );
}