Disable save and open buttons while scan is under way

Clicking them while scanning causes crashes and undefined behavior.