Ephoto: make sure the monitor callback for delete is on the file we are working on.

master
Stephen 'Okra' Houston 5 years ago
parent 3480bb44b3
commit e53ee13f3c
  1. 1
      src/bin/ephoto_main.c
  2. 3
      src/bin/ephoto_single_browser.c

@ -498,6 +498,7 @@ ephoto_window_add(const char *path)
ephoto->infolabel = elm_label_add(ephoto->statusbar);
elm_object_style_set(ephoto->infolabel, "info");
elm_label_line_wrap_set(ephoto->infolabel, ELM_WRAP_MIXED);
elm_label_ellipsis_set(ephoto->infolabel, EINA_TRUE);
elm_object_text_set(ephoto->infolabel, _("Information"));
EPHOTO_EXPAND(ephoto->infolabel);
EPHOTO_FILL(ephoto->infolabel);

@ -338,7 +338,8 @@ _monitor_cb(void *data, int type,
}
else if (type == EIO_MONITOR_FILE_DELETED)
{
_ephoto_main_back(sb, NULL, NULL);
if (!ecore_file_exists(sb->entry->path))
_ephoto_main_back(sb, NULL, NULL);
}
return ECORE_CALLBACK_PASS_ON;
}

Loading…
Cancel
Save