if(cm_gdata_config.oauth2_refresh_token != NULL) {
passwd_store_set(PWS_PLUGIN, "GData", GDATA_TOKEN_PWD_STRING,
cm_gdata_config.oauth2_refresh_token, FALSE);
+ passwd_store_write_config();
}
cm_gdata_prefs_init();
static gchar *path[3];
gchar *rcpath;
guint i;
+ gboolean passwords_migrated = FALSE;
path[0] = _("Plugins");
path[1] = _("SpamReport");
strlen(spamreport_prefs.pass[i]) > 0) {
spamreport_passwd_set(spam_interfaces[i].name,
spamreport_prefs.pass[i]);
+ passwords_migrated = TRUE;
}
}
+ if (passwords_migrated)
+ passwd_store_write_config();
spamreport_prefs_page.page.path = path;
spamreport_prefs_page.page.create_widget = create_spamreport_prefs_page;
prefs_file_close_revert(pref_file);
} else
prefs_file_close(pref_file);
+
+ passwd_store_write_config();
}