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; Ephoto_Single_Browser *sb = data;
if (!sb->entry) if (!sb->entry && sb->ephoto->state == EPHOTO_STATE_SINGLE)
ephoto_single_browser_entry_set(sb->main, ephoto_single_browser_entry_set(sb->main,
eina_list_nth(sb->ephoto->entries, 0)); eina_list_nth(sb->ephoto->entries, 0));

View File

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