Use the rescan option when rescanning files from menu (#5043)

This commit is contained in:
WithoutPants
2024-07-04 11:24:03 +10:00
committed by GitHub
parent 6cebf146cb
commit f598fa71da
3 changed files with 3 additions and 0 deletions

View File

@@ -124,6 +124,7 @@ export const GalleryPage: React.FC<IProps> = ({ gallery, add }) => {
await mutateMetadataScan({ await mutateMetadataScan({
paths: [path], paths: [path],
rescan: true,
}); });
Toast.success( Toast.success(

View File

@@ -80,6 +80,7 @@ const ImagePage: React.FC<IProps> = ({ image }) => {
await mutateMetadataScan({ await mutateMetadataScan({
paths: [objectPath(image)], paths: [objectPath(image)],
rescan: true,
}); });
Toast.success( Toast.success(

View File

@@ -297,6 +297,7 @@ const ScenePage: React.FC<IProps> = ({
async function onRescan() { async function onRescan() {
await mutateMetadataScan({ await mutateMetadataScan({
paths: [objectPath(scene)], paths: [objectPath(scene)],
rescan: true,
}); });
Toast.success( Toast.success(