From 8e24d8a89683f8d4f2d04cf7d14bd0d2247eac60 Mon Sep 17 00:00:00 2001 From: rc-swag <58423624+rc-swag@users.noreply.github.com> Date: Fri, 17 Jan 2025 21:09:49 +1000 Subject: [PATCH] feat(windows): compare class instead of string name --- .../desktop/kmshell/main/Keyman.System.UpdateStateMachine.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/src/desktop/kmshell/main/Keyman.System.UpdateStateMachine.pas b/windows/src/desktop/kmshell/main/Keyman.System.UpdateStateMachine.pas index 80fbf08634..c77510af6c 100644 --- a/windows/src/desktop/kmshell/main/Keyman.System.UpdateStateMachine.pas +++ b/windows/src/desktop/kmshell/main/Keyman.System.UpdateStateMachine.pas @@ -567,7 +567,7 @@ function TUpdateStateMachine.ReadyToInstall: Boolean; begin if not IsCurrentStateAssigned then Exit(False); - if (CurrentState.ClassName = 'WaitingRestartState') and not HasKeymanRun then + if (CurrentState is WaitingRestartState) and not HasKeymanRun then Result := True else Result := False;