OK, I tried my suggestion above, and discovered it’s the file ‘machine.json’ in the ‘Roaming’ folder that has the problem. After discovering this I restored the whole thing from the recycle bin but replaced ‘machine.json’ with the file copied over from a new installation.