Notifications: Only save changed prefs

(so as not to save a local pref when nothing changed)

(integrated from master branch change 2a96977 by Nathan Rijksen <n.rijksen@gmail.com>)