ensure tray exists before minimizing to it

Issue: #104
update tray when changing setting through UI

Issue: #104