feat(windows): compare class instead of string name

This commit is contained in:
rc-swag 2025-01-17 21:09:49 +10:00
parent 2467e1dd1f
commit 8e24d8a896

View file

@ -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;