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

The config is now always saved on exit.

This commit is contained in:
Simon van Bernem 2025-04-28 15:37:04 +02:00
parent 7474127bbb
commit 6b03d1dd9e

View File

@ -274,7 +274,6 @@ static bool SaveConfig()
static void SetupScaleCallback( float scale ) static void SetupScaleCallback( float scale )
{ {
s_config.userScale = scale; s_config.userScale = scale;
if ( s_config.saveUserScale ) SaveConfig();
RunOnMainThread( []{ SetupDPIScale(); }, true ); RunOnMainThread( []{ SetupDPIScale(); }, true );
} }
@ -430,6 +429,8 @@ int main( int argc, char** argv )
backend.Show(); backend.Show();
backend.Run(); backend.Run();
SaveConfig();
if( loadThread.joinable() ) loadThread.join(); if( loadThread.joinable() ) loadThread.join();
if( updateThread.joinable() ) updateThread.join(); if( updateThread.joinable() ) updateThread.join();
if( updateNotesThread.joinable() ) updateNotesThread.join(); if( updateNotesThread.joinable() ) updateNotesThread.join();