Skip to content

Commit

Permalink
Use the rescan option when rescanning files from menu (#5043)
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants committed Jul 4, 2024
1 parent 6cebf14 commit f598fa7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export const GalleryPage: React.FC<IProps> = ({ gallery, add }) => {

await mutateMetadataScan({
paths: [path],
rescan: true,
});

Toast.success(
Expand Down
1 change: 1 addition & 0 deletions ui/v2.5/src/components/Images/ImageDetails/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const ImagePage: React.FC<IProps> = ({ image }) => {

await mutateMetadataScan({
paths: [objectPath(image)],
rescan: true,
});

Toast.success(
Expand Down
1 change: 1 addition & 0 deletions ui/v2.5/src/components/Scenes/SceneDetails/Scene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ const ScenePage: React.FC<IProps> = ({
async function onRescan() {
await mutateMetadataScan({
paths: [objectPath(scene)],
rescan: true,
});

Toast.success(
Expand Down

0 comments on commit f598fa7

Please sign in to comment.