*
* @param prefs preferences map to take info from.
*/
private void loadGeneralPreferences(Map prefs)
{
UserPreferences up = model.getUserPreferences();
// FeedRenderingSettings frs = model.getGlobalRenderingSettings();
up.setCheckingForUpdatesOnStartup(getBoolean(prefs,
UserPreferences.PROP_CHECKING_FOR_UPDATES_ON_STARTUP,
up.isCheckingForUpdatesOnStartup()));
// Disabled as we don't like what happens when synchronizing fonts across platforms
// frs.setMainContentFont(getFont(prefs,
// RenderingSettingsNames.MAIN_CONTENT_FONT,
// frs.getMainContentFont()));
up.setShowToolbar(getBoolean(prefs,
UserPreferences.PROP_SHOW_TOOLBAR,
up.isShowToolbar()));
// Behavior
up.setMarkReadWhenChangingChannels(getBoolean(prefs,
UserPreferences.PROP_MARK_READ_WHEN_CHANGING_CHANNELS,
up.isMarkReadWhenChangingChannels()));
up.setMarkReadWhenChangingGuides(getBoolean(prefs,
UserPreferences.PROP_MARK_READ_WHEN_CHANGING_GUIDES,
up.isMarkReadWhenChangingGuides()));
up.setMarkReadAfterDelay(getBoolean(prefs,
UserPreferences.PROP_MARK_READ_AFTER_DELAY,
up.isMarkReadAfterDelay()));
up.setMarkReadAfterSeconds(getInt(prefs,
UserPreferences.PROP_MARK_READ_AFTER_SECONDS,
up.getMarkReadAfterSeconds()));
// Updates and Cleanups
up.setRssPollInterval(getInt(prefs,
UserPreferences.PROP_RSS_POLL_MIN,
up.getRssPollInterval()));
up.setPurgeCount(getInt(prefs,
UserPreferences.PROP_PURGE_COUNT,
up.getPurgeCount()));
up.setPreserveUnread(getBoolean(prefs,
UserPreferences.PROP_PRESERVE_UNREAD,
up.isPreserveUnread()));
}