Save settings when plugin manager dialog is closed

Not sure if this is desirable, hence the pull request.

If applied, would close (IIUC) this feature request:
https://sourceforge.net/tracker/?func=detail&atid=787794&aid=3555785&group_id=153444