Parent TasksModel to QGuiApplication and delete TasksModel after we've set the environment
`Settings` is a singleton and only cleaned up in `run_exit_handlers`, at which point the QPA will already have cleaned up leading to a crash on teardown uner Wayland. Also, there's no point in keeping it around, being subscribed to window management changes, when we don't care about them anymore.
parent
cc5d7b5a