Tweak to preference window

- Just disable preferences instead of closing window when the engine is analyzing