Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Directory refresh ignores search query #482

Closed
3 tasks done
MichaelBrunn3r opened this issue Sep 9, 2024 · 4 comments
Closed
3 tasks done

[Bug]: Directory refresh ignores search query #482

MichaelBrunn3r opened this issue Sep 9, 2024 · 4 comments
Labels
Type: Bug Something isn't working as intended
Milestone

Comments

@MichaelBrunn3r
Copy link

MichaelBrunn3r commented Sep 9, 2024

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

@MichaelBrunn3r MichaelBrunn3r added the Type: Bug Something isn't working as intended label Sep 9, 2024
@seakrueger
Copy link
Collaborator

Fixed as part of SQL migration on main. I would not recommend switching to main as of right now though, there's no migration and "untagged" is not implemented yet, but the next major release (v9.5) should have the fix to this.

@MichaelBrunn3r
Copy link
Author

MichaelBrunn3r commented Sep 9, 2024

Thx for the info. I'm looking forward to v9.5, thanks for the awesome work

@seakrueger
Copy link
Collaborator

seakrueger commented Sep 9, 2024

Hey btw, turns out it's a single line to fix on the current 9.4 branch. :)
Assuming you're running from source since on nix, change line 1094 of ts_qt.py to r.done.connect(lambda: (pw.hide(), pw.deleteLater(), self.filter_items(self.main_window.searchField.text())))

@CyanVoxel CyanVoxel added this to the Alpha v9.4.1 milestone Sep 10, 2024
@MichaelBrunn3r
Copy link
Author

MichaelBrunn3r commented Sep 10, 2024

Wow, that fixed it immediately. That's soooo much smoother now. Thx again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

3 participants