*
* @param prefs preferences map.
*/
private void storeGeneralPreferences(Map prefs)
{
UserPreferences up = model.getUserPreferences();
setBoolean(prefs, UserPreferences.PROP_CHECKING_FOR_UPDATES_ON_STARTUP,
up.isCheckingForUpdatesOnStartup());
// Disabled as we don't like what happens when synchronizing fonts across platforms
// setFont(prefs, RenderingSettingsNames.MAIN_CONTENT_FONT, frs.getMainContentFont());
setBoolean(prefs, UserPreferences.PROP_SHOW_TOOLBAR, up.isShowToolbar());
// Behaviour
setBoolean(prefs, UserPreferences.PROP_MARK_READ_WHEN_CHANGING_CHANNELS,
up.isMarkReadWhenChangingChannels());
setBoolean(prefs, UserPreferences.PROP_MARK_READ_WHEN_CHANGING_GUIDES,
up.isMarkReadWhenChangingGuides());
setBoolean(prefs, UserPreferences.PROP_MARK_READ_AFTER_DELAY,
up.isMarkReadAfterDelay());
setInt(prefs, UserPreferences.PROP_MARK_READ_AFTER_SECONDS,
up.getMarkReadAfterSeconds());
// Updates and Cleanups
setInt(prefs, UserPreferences.PROP_RSS_POLL_MIN,
up.getRssPollInterval());
setInt(prefs, UserPreferences.PROP_PURGE_COUNT,
up.getPurgeCount());
setBoolean(prefs, UserPreferences.PROP_PRESERVE_UNREAD,
up.isPreserveUnread());
}