mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-21 15:17:40 +00:00
feat(windows): compare class instead of string name
This commit is contained in:
parent
2467e1dd1f
commit
8e24d8a896
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue