bin/file_mgr: don't update msg if statusbar is disabled.

This commit is contained in:
ChunEon Park 2015-03-01 14:11:00 +09:00
parent 65a52d4968
commit 3dfaf7cb61
1 changed files with 8 additions and 16 deletions

View File

@ -152,23 +152,15 @@ file_mgr_edc_save(void)
char buf[PATH_MAX];
file_mgr_data *fmd = g_fmd;
if (enventor_object_save(fmd->enventor, config_edc_path_get()))
{
if (config_stats_bar_get())
{
snprintf(buf, sizeof(buf), "File saved. \"%s\"",
config_edc_path_get());
}
}
else
{
if (config_stats_bar_get())
{
snprintf(buf, sizeof(buf), "Already saved. \"%s\"",
config_edc_path_get());
}
Eina_Bool save_success = enventor_object_save(fmd->enventor, config_edc_path_get());
if (!config_stats_bar_get()) return;
if (save_success)
snprintf(buf, sizeof(buf), "File saved. \"%s\"", config_edc_path_get());
else
snprintf(buf, sizeof(buf), "Already saved. \"%s\"", config_edc_path_get());
}
stats_info_msg_update(buf);
}