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:
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user