forked from enlightenment/enventor
bin/file_mgr: don't update msg if statusbar is disabled.
This commit is contained in:
parent
65a52d4968
commit
3dfaf7cb61
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue