saving properties window state when changed

to not lose it on an unclean exit
Merge pull request #2309 from john-peterson/save3

saving properties window state when changed