Bambu Studio forgets printer and shows 'no printer' at next startup

I recently switched my Bambu A1 printer to LAN Only mode but now Bambu Studio is giving me problems.

When I add the printer in Bambu Studio (using Access Code from the printer) then it works fine, but only until I close Bambu Studio.

When I later start Bambu Studio again, it has forgotten about the printer and shows “no printer”.

I must then first reconnect the printer in Studio again, which requires me to enter the Access Code again. This is getting increasingly annoying and provides a bad user experience each time again.

This appears to be a bug. Please fix it.