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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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({
paths: [path],
rescan: true,
});
Toast.success(

View File

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

View File

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