1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add function to determine if the program is busy.

This commit is contained in:
Bartosz Taudul
2024-03-24 17:38:45 +01:00
parent 630effe8fa
commit 9f9cd04761
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -196,6 +196,13 @@ static void SetupScaleCallback( float scale )
RunOnMainThread( []{ SetupDPIScale(); }, true );
}
static int IsBusy()
{
if( loadThread.joinable() ) return 2;
if( view && !view->IsBackgroundDone() ) return 1;
return 0;
}
static void LoadConfig()
{
const auto fn = tracy::GetSavePath( "tracy.ini" );