Fix for widget visibility with detached preferences window