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
Auto-refresh of tileset files only works for 1 refresh #44
Comments
Make sure that each time a change is detected, the timer is restarted. Also, wait 500ms rather than 200ms after the last detected change before reloading the image. This tries to avoid the problem mentioned at #44
This issue came up on irc again: chillyguess: Oh yep, we figured out a workaround |
As of change bd17698 you can also press Ctrl+T to force-reload all tilesets of the current map. |
The cause of the issue is in FileSystemWatcher::onFileChanged() (in filesystemwatcher.cpp). When saving from Photoshop, Not sure what would be a proper way to fix it. One way might be to also watch the directory where the file is/was, and add the file back to the watcher if/when it reappears in the directory. |
Thanks for investigating this @fo-fo! At least this gives us a clue about why it is breaking with Photoshop and we can consider ways to fix it, but indeed it seems we have to start tracking the directories also. |
It happens only in photoshop (version doesnt seems to make difference), MSPaint is working fine.
Tested with png files. Restarting photoshop has no effect.
The text was updated successfully, but these errors were encountered: