From 132a4ba32089bfe332794b67d432b2d1888a906c Mon Sep 17 00:00:00 2001 From: Simon van Bernem Date: Mon, 28 Apr 2025 17:01:29 +0200 Subject: [PATCH] Revert "The config is now always saved on exit." This reverts commit 6b03d1dd9e80069fef12e9f5043b627bfea99f17. --- profiler/src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index fccb611d..b10a6680 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -274,6 +274,7 @@ static bool SaveConfig() static void SetupScaleCallback( float scale ) { s_config.userScale = scale; + if ( s_config.saveUserScale ) SaveConfig(); RunOnMainThread( []{ SetupDPIScale(); }, true ); } @@ -429,8 +430,6 @@ 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();