yes, in ```mainwindow.py:288``` there is a 
```python
self._preferences_window = None
```