Skip to content

[Bug]: Directory refresh ignores search query #482

Closed
@MichaelBrunn3r

Description

@MichaelBrunn3r

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

TagStudio Version

Alpha 9.4.0

Operating System & Version

NixOS 24.05

Description

If the displayed images are filtered (i.e. only matching images are shown) and then the directories are refreshed, all images are shown.

After every refresh, ALL thumbnails are regenerated. Thumbnail generation is already slow for me, so this makes adding images 1-by-1 very unpleasant. I thought I could fix this by just entering the query untagged which now only generates thumbnails for new images. But the refresh behavior makes this hack useless.

Expected Behavior

Refreshing directories does not clear the search query, so I would expect that it is immediately applied after refreshing. Right now I have to press enter in the search query bar again after every refresh.

E.g. if I have the query untagged and it shows 10 images, I add an image to a folder, I refresh: Now 11 images are shown. But in reality all my images are shown.

Steps to Reproduce

  1. filter displayed images (e.g. untagged)
  2. (Optional) add an image to a directory in the library
  3. Refresh directories Ctrl + R

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions