Fixed a bug where a newly created album does not show in the albums pane because of the old cache copy
This commit is contained in:
parent
5948bf4f93
commit
1671517f41
@ -113,7 +113,10 @@ album = {
|
|||||||
|
|
||||||
if (data===true) data = 1; // Avoid first album to be true
|
if (data===true) data = 1; // Avoid first album to be true
|
||||||
|
|
||||||
if (data!==false&&isNumber(data)) lychee.goto(data);
|
if (data!==false&&isNumber(data)) {
|
||||||
|
albums.refresh();
|
||||||
|
lychee.goto(data);
|
||||||
|
}
|
||||||
else lychee.error(null, params, data);
|
else lychee.error(null, params, data);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -256,7 +256,10 @@ album = {
|
|||||||
|
|
||||||
if (data===true) data = 1; // Avoid first album to be true
|
if (data===true) data = 1; // Avoid first album to be true
|
||||||
|
|
||||||
if (data!==false&&isNumber(data)) lychee.goto(data);
|
if (data!==false&&isNumber(data)) {
|
||||||
|
albums.refresh();
|
||||||
|
lychee.goto(data);
|
||||||
|
}
|
||||||
else lychee.error(null, params, data);
|
else lychee.error(null, params, data);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user