Prevent Settings menu from closing when QR code is shown
LoginRequired
This is the solution for the front end part.
The front end is implemented with Blazor Webassembly (also in C#).