simplify persisting DisplayState in AppPrefs.cpp