From 6b03d1dd9e80069fef12e9f5043b627bfea99f17 Mon Sep 17 00:00:00 2001 From: Simon van Bernem Date: Mon, 28 Apr 2025 15:37:04 +0200 Subject: [PATCH] The config is now always saved on exit. --- profiler/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index b10a6680..fccb611d 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -274,7 +274,6 @@ static bool SaveConfig() static void SetupScaleCallback( float scale ) { s_config.userScale = scale; - if ( s_config.saveUserScale ) SaveConfig(); RunOnMainThread( []{ SetupDPIScale(); }, true ); } @@ -430,6 +429,8 @@ int main( int argc, char** argv ) backend.Show(); backend.Run(); + SaveConfig(); + if( loadThread.joinable() ) loadThread.join(); if( updateThread.joinable() ) updateThread.join(); if( updateNotesThread.joinable() ) updateNotesThread.join();