add preferences.during_trans and window auto statement
hide window when the scene statement is used even if the window auto statement is used