Mailspring window maximized after waking from sleep

I have the Mailspring window closed and in my taskbar, upon waking my PC from sleep the window is open. How can I prevent this?

Window 10 21H1
Mailspring 1.9.2