Ephoto: Only update the single image title when the state mode of ephoto is single view.
This commit is contained in:
parent
85dcb34cfc
commit
bcce6b605f
|
@ -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));
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue