From bfd077a3bbc2e8e46a1cdfcc9f7755ae070c101b Mon Sep 17 00:00:00 2001 From: rc-swag <58423624+rc-swag@users.noreply.github.com> Date: Wed, 5 Mar 2025 11:16:39 +1000 Subject: [PATCH] fix(windows): fix begin end block --- windows/src/desktop/setup/UfrmRunDesktop.pas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/windows/src/desktop/setup/UfrmRunDesktop.pas b/windows/src/desktop/setup/UfrmRunDesktop.pas index c345450544..75e3eb79ed 100644 --- a/windows/src/desktop/setup/UfrmRunDesktop.pas +++ b/windows/src/desktop/setup/UfrmRunDesktop.pas @@ -1052,10 +1052,12 @@ begin try if OpenKeyReadOnly('\' + SRegKey_KeymanEngine_CU) then begin - // only update the the flag if the value exists in the registry, otherwise leave them as defaults + // only update the flag if the value exists in the registry, otherwise leave them as defaults // leave as the the default values if ValueExists(SRegValue_AutomaticallyReportUsage) then - FAutomaticallyReportUsage := ReadBool(SRegValue_AutomaticallyReportUsage) + begin + FAutomaticallyReportUsage := ReadBool(SRegValue_AutomaticallyReportUsage); + end; if ValueExists(SRegValue_CheckForUpdates) then begin FCheckForUpdates := ReadBool(SRegValue_CheckForUpdates);