Write passwordstore into file more often, not just at exit.
[claws.git] / src / plugins / gdata / gdata_plugin.c
index 99303a19c764ebf83cf5d20e3eeb3ac42ecfd1da..3e3e70c2e9f155fdd67b9f964783048c66357c00 100644 (file)
@@ -127,6 +127,7 @@ gint plugin_init(gchar **error)
        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);
        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();
        }
 
   cm_gdata_prefs_init();