Use `Settings::saveWindow(this);` instead.