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.
- No longer crashes on Wayland. I don't actually get any windows in the model on Wayland...
- Still works on X
Edited by Kai Uwe Broulik