I am trying to wrap my head around how exactly did you manage to get hacked so quickly.
Certainly it was not from a vulnerability in the Electrum wallet. Did you use a weak password or even no password at all?
What else was running on your Windows PC?
[exactly the reason why I do not store any funds on Windows (and Mac) and will never ever do that.]
Right now is not about of a Electrum code vulnerability like in the past ( see CVE-2018-1000022
CVE-2018-6353) it's about off Electrum "ecosystem" itself .. users can be tricked quite easily when they make an update. That's why it must be acted with maximum vigilance!
Weak or strong password - it doesn't matter when the hackers are in full control of wallet. The question is how they got that access, fake update, keylogger, etc. Knowing this, it will prevent other users to get tricked.