Closed terrehbyte closed 2 years ago
Hi and sorry for the late reply,
This problem is actually due to the "Display imported images in a Hydrus page named..." option in the "Settings" > "Hydrus API" window. When this option is checked (which is the case here as it corresponds to the "AddImagesToHydrusPage" option being True in the setting file you've provided) imported images will be added to a page in the Hydrus client, and when that happens the client focuses itself. So here it's actually Hydrus stealing the focus (which might not be obvious as it happens even if the Hydrus window is minimized in the taskbar or the system tray).
I've tried various things but it seems there's no way to prevent the Hydrus client from focusing itself when a file is added to a page using the API. I've also noticed that it only happens like 80% of the time, which explains why it happens frequently (but not always) as you said and why it's worse when the delay between searches in Hatate is smaller.
It's not ideal but the best you can do to avoid this problem for now is either to disable that option, or to disable the "Automatically send search files to Hydrus" option, and manually selecting the files in the list then right-clicking and selecting "Hydrus" > "Import files with tags" in the context menu.
Gotcha, you're totally right there. I kept it on to review the files that got tagged and rate them, but I'll just have to settle for them coming up in other queries in the future instead.
I'll go ahead and close this out then~ ✨ Thank you for creating and maintaining Hatate!
After each lookup, successful or not, Hatate appears to steal window and input focus from whatever application I'm working with. This happens pretty frequently when the delay between each search is set to something small like 5 seconds. This started after upgrading to Release 10.
My workflow for Hatate is as follows:
In hindsight, I probably don't need to send tags if Hydrus is going to handle it anyway, but I wouldn't imagine that would cause an issue.
If it's useful, my full config (w/ keys removed) is as follows:
Is this intentional behavior or did I miss a setting somewhere?