Setting for keeping icon in dock is persisted; fixes #411.