Hungary lost vast swaths of territory after WW2. People who were Hungary citizens weren’t after the new borders were drawn.
I don’t see a big difference between that and Germany giving citizenship to all the people who were Germans prior to WW2, but weren’t after the war.
https://www.bbc.co.uk/news/resources/idt-sh/Viktor_Orban