MachineStateModal: prepare IDE when it gets the Running state [fixes #77376592]

ping @fatihacet