Ephoto: Only update the single image title when the state mode of ephoto is single view.

This commit is contained in:
Stephen okra Houston 2016-06-01 16:16:30 -05:00
parent 85dcb34cfc
commit bcce6b605f
2 changed files with 6 additions and 3 deletions

View File

@ -1278,7 +1278,7 @@ _ephoto_single_populate_end(void *data, int type EINA_UNUSED,
{
Ephoto_Single_Browser *sb = data;
if (!sb->entry)
if (!sb->entry && sb->ephoto->state == EPHOTO_STATE_SINGLE)
ephoto_single_browser_entry_set(sb->main,
eina_list_nth(sb->ephoto->entries, 0));

View File

@ -1373,15 +1373,18 @@ _ephoto_thumb_populate_end(void *data, int type EINA_UNUSED,
}
else if (tb->ephoto->state == EPHOTO_STATE_SINGLE)
{
ephoto_single_browser_entry_set(tb->ephoto->single_browser, NULL);
if (tb->ephoto->entries)
{
ephoto_single_browser_entry_set(tb->ephoto->single_browser, NULL);
ephoto_single_browser_entries_set(tb->ephoto->single_browser,
tb->ephoto->entries);
}
else
{
ephoto_single_browser_entry_set(tb->ephoto->single_browser, NULL);
ephoto_title_set(tb->ephoto, tb->ephoto->config->directory);
}
}
tb->entries = tb->ephoto->entries;
if (eina_list_count(tb->entries) < 1)
{