}
static Eina_Bool
-_elm_config_profile_save(void)
+_elm_config_profile_save(const char *profile)
{
+ Elm_Config_Derived *derived;
char buf[4096], buf2[4096];
int ok = 0, ret;
const char *err;
derived = _elm_config_derived_load(profile ? profile : _elm_profile);
if (derived)
{
- _elm_config_derived_save(cfg, derived);
+ _elm_config_derived_save(_elm_config, derived);
_elm_config_derived_free(derived);
}
return EINA_TRUE;
Eina_Bool
_elm_config_save(Elm_Config *cfg, const char *profile)
{
- Elm_Config_Derived *derived;
char buf[4096], buf2[4096];
int ok = 0, ret;
const char *err;
if (!profile)
{
- if (!_elm_config_profile_save())
+ if (!_elm_config_profile_save(NULL))
return EINA_FALSE;
}
return;
}
- if (!_elm_config_profile_save())
- return;
+ if (!_elm_config_profile_save(NULL))
+ {
+ ERR("Failed to save profile");
+ return;
+ }
elm_config_save();
return;