timeline: stack RAW with additional file extension (fix #927)
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/953/head
parent
e55f0d6343
commit
f148b45fc6
|
@ -1095,6 +1095,13 @@ export default defineComponent({
|
||||||
const basename = utils.removeExtension(photo.basename ?? String());
|
const basename = utils.removeExtension(photo.basename ?? String());
|
||||||
const files = toStack.get(basename) ?? [];
|
const files = toStack.get(basename) ?? [];
|
||||||
|
|
||||||
|
// Also allow *one* more extension in the filename
|
||||||
|
// https://github.com/pulsejet/memories/issues/927
|
||||||
|
if (basename.includes('.')) {
|
||||||
|
const subname = utils.removeExtension(basename);
|
||||||
|
files.push(...(toStack.get(subname) ?? []));
|
||||||
|
}
|
||||||
|
|
||||||
if (!files.length) continue;
|
if (!files.length) continue;
|
||||||
|
|
||||||
// Stack on top of this file
|
// Stack on top of this file
|
||||||
|
|
Loading…
Reference in New Issue